fix signout

This commit is contained in:
Matias Alejo Garcia 2014-12-02 23:30:44 -03:00 committed by Gustavo Maximiliano Cortez
parent 65512bf1c2
commit 047ba06d42
3 changed files with 7 additions and 4 deletions

View File

@ -64,8 +64,5 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
$rootScope.$watch('title', function(newTitle, oldTitle) {
$scope.title = newTitle;
});
$rootScope.$on('signout', function() {
$scope.signout();
});
}
});

View File

@ -14,6 +14,11 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
$scope.confirmedEmail = true;
$rootScope.fromEmailConfirmation = false;
}
if($rootScope.iden) {
identityService.goWalletHome();
}
Compatibility.check($scope);
pinService.check(function(err, value) {
$scope.hasPin = value;

View File

@ -25,7 +25,8 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
}];
$scope.signout = function() {
$scope.$emit('signout');
$rootScope.signingOut = true;
identityService.signout();
};
$scope.isActive = function(item) {