fix signout

This commit is contained in:
Matias Alejo Garcia 2014-12-02 23:30:44 -03:00 committed by Gustavo Maximiliano Cortez
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) { $rootScope.$watch('title', function(newTitle, oldTitle) {
$scope.title = newTitle; $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; $scope.confirmedEmail = true;
$rootScope.fromEmailConfirmation = false; $rootScope.fromEmailConfirmation = false;
} }
if($rootScope.iden) {
identityService.goWalletHome();
}
Compatibility.check($scope); Compatibility.check($scope);
pinService.check(function(err, value) { pinService.check(function(err, value) {
$scope.hasPin = value; $scope.hasPin = value;

View file

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