Display a message while copay is logging out
This commit is contained in:
parent
e9eb311339
commit
8f6aa20900
2 changed files with 8 additions and 3 deletions
|
|
@ -13,6 +13,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
|||
};
|
||||
|
||||
$scope.signout = function() {
|
||||
$rootScope.signingOut = true;
|
||||
controllerUtils.logout();
|
||||
};
|
||||
|
||||
|
|
@ -33,7 +34,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
|||
|
||||
// Ensures a graceful disconnect
|
||||
window.onbeforeunload = function() {
|
||||
controllerUtils.logout();
|
||||
$scope.signout();
|
||||
};
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
|
|
@ -59,7 +60,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
|||
$scope.title = newTitle;
|
||||
});
|
||||
$rootScope.$on('signout', function() {
|
||||
controllerUtils.logout();
|
||||
$scope.signout();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue