Add an explicit call to a controller when signing out
This commit is contained in:
parent
b3d10ac78d
commit
db6bcc4d9a
3 changed files with 13 additions and 1 deletions
7
js/controllers/signOut.js
Normal file
7
js/controllers/signOut.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
angular.module('copayApp.controllers').controller('signOutController', function(identityService) {
|
||||||
|
|
||||||
|
console.log('En el controller del sign out');
|
||||||
|
|
||||||
|
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…
Add table
Add a link
Reference in a new issue