add store Profile on adding wallets

This commit is contained in:
Matias Alejo Garcia 2014-10-29 23:23:16 -03:00
commit 08dc892887
3 changed files with 16 additions and 15 deletions

View file

@ -13,12 +13,9 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
};
$scope.signout = function() {
logout();
controllerUtils.logout();
};
function logout() {
controllerUtils.logout();
}
// Ensures a graceful disconnect
window.onbeforeunload = function() {
@ -48,7 +45,7 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
$scope.title = newTitle;
});
$rootScope.$on('signout', function() {
$scope.signout();
controllerUtils.logout();
});
}
});