mirror of https://github.com/BTCPrivate/copay.git
Display a message while copay is logging out
This commit is contained in:
parent
e9eb311339
commit
8f6aa20900
|
@ -25,7 +25,11 @@
|
|||
<img src="img/ajax-loader.gif" alt="Loading...">
|
||||
</div>
|
||||
<div ng-cloak class="page ng-cloak">
|
||||
<div class="off-canvas-wrap">
|
||||
<div data-alert class="loading-screen" ng-show="signingOut">
|
||||
<i class="size-60 fi-bitcoin-circle icon-rotate spinner"></i>
|
||||
<span translate>Logging Out</span>
|
||||
</div>
|
||||
<div class="off-canvas-wrap" ng-show="!signingOut">
|
||||
<div class="inner-wrap">
|
||||
<span class="status" ng-if="$root.reconnecting">
|
||||
<i class="fi-loop icon-rotate"></i>
|
||||
|
|
|
@ -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…
Reference in New Issue