fix wallet lock - add tabs in export wallet

This commit is contained in:
Javier 2016-06-27 16:01:06 -03:00
commit 45d44a927b
3 changed files with 146 additions and 86 deletions

View file

@ -23,8 +23,7 @@ angular.module('copayApp.controllers').controller('backupController',
handleEncryptedWallet(fc, function(err) {
if (err) {
$scope.error = bwsError.msg(err, gettext('Could not decrypt'));
$log.warn('Error decrypting credentials:', $scope.error);
go.path(prevState);
return;
}
$scope.credentialsEncrypted = false;
@ -69,10 +68,13 @@ angular.module('copayApp.controllers').controller('backupController',
};
$scope.goBack = function() {
walletService.lock(fc);
go.path(prevState || 'walletHome');
};
$scope.$on('$destroy', function() {
walletService.lock(fc);
});
$scope.goToStep = function(n) {
if (n == 1)
$scope.initFlow();