fix reload in cordova

This commit is contained in:
Matias Alejo Garcia 2014-12-06 21:07:26 -03:00
commit 984a7a6651
6 changed files with 22 additions and 14 deletions

View file

@ -158,6 +158,8 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
return;
}
$scope.saveSettings(function(err) {
preconditions.checkState(!err,err);
$scope._doCreateProfile($scope.userOrEmail, form.password.$modelValue, function(err) {
$timeout(function() {
form.password.$setViewValue('');

View file

@ -15,7 +15,6 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
};
$scope.signout = function() {
$rootScope.signingOut = true;
identityService.signout();
};

View file

@ -114,7 +114,7 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
pinService.clear(function() {
copay.logger.debug('PIN erased');
delete $rootScope['hasPin'];
applicationService.reload();
applicationService.restart();
});
};

View file

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