mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #2346 from matiaspando/bug/signout-android-wp
Add an explicit call to a controller when signing out
This commit is contained in:
commit
4f999d5a62
|
@ -0,0 +1,5 @@
|
||||||
|
angular.module('copayApp.controllers').controller('signOutController', function(identityService) {
|
||||||
|
|
||||||
|
identityService.signout();
|
||||||
|
|
||||||
|
});
|
|
@ -13,7 +13,7 @@ angular.element(document).ready(function() {
|
||||||
|
|
||||||
document.addEventListener('pause', function() {
|
document.addEventListener('pause', function() {
|
||||||
if (!window.ignoreMobilePause) {
|
if (!window.ignoreMobilePause) {
|
||||||
window.location = '#!';
|
window.location = '#!/signout';
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,11 @@ angular
|
||||||
.when('/add', {
|
.when('/add', {
|
||||||
templateUrl: 'views/add.html',
|
templateUrl: 'views/add.html',
|
||||||
logged: true
|
logged: true
|
||||||
|
})
|
||||||
|
.when('/signout', {
|
||||||
|
template: " ", // just fire controller
|
||||||
|
controller: 'signOutController',
|
||||||
|
logged: true
|
||||||
});
|
});
|
||||||
|
|
||||||
if (config.developmentFeatures) {
|
if (config.developmentFeatures) {
|
||||||
|
|
Loading…
Reference in New Issue