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
|
|
@ -25,7 +25,11 @@
|
||||||
<img src="img/ajax-loader.gif" alt="Loading...">
|
<img src="img/ajax-loader.gif" alt="Loading...">
|
||||||
</div>
|
</div>
|
||||||
<div ng-cloak class="page ng-cloak">
|
<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">
|
<div class="inner-wrap">
|
||||||
<span class="status" ng-if="$root.reconnecting">
|
<span class="status" ng-if="$root.reconnecting">
|
||||||
<i class="fi-loop icon-rotate"></i>
|
<i class="fi-loop icon-rotate"></i>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.signout = function() {
|
$scope.signout = function() {
|
||||||
|
$rootScope.signingOut = true;
|
||||||
controllerUtils.logout();
|
controllerUtils.logout();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -33,7 +34,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
||||||
|
|
||||||
// Ensures a graceful disconnect
|
// Ensures a graceful disconnect
|
||||||
window.onbeforeunload = function() {
|
window.onbeforeunload = function() {
|
||||||
controllerUtils.logout();
|
$scope.signout();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on('$destroy', function() {
|
$scope.$on('$destroy', function() {
|
||||||
|
|
@ -59,7 +60,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
||||||
$scope.title = newTitle;
|
$scope.title = newTitle;
|
||||||
});
|
});
|
||||||
$rootScope.$on('signout', function() {
|
$rootScope.$on('signout', function() {
|
||||||
controllerUtils.logout();
|
$scope.signout();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue