mirror of https://github.com/BTCPrivate/copay.git
fix signout
This commit is contained in:
parent
65512bf1c2
commit
047ba06d42
|
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue