fix import

This commit is contained in:
Matias Alejo Garcia 2014-12-02 17:38:31 -03:00
commit ab9696fdd7
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,8 @@ angular.module('copayApp.controllers').controller('ImportController',
if (err) { if (err) {
$scope.loading = false; $scope.loading = false;
$scope.error = 'Could not read wallet. Please check your password'; $scope.error = 'Could not read wallet. Please check your password';
$rootScope.$digest();
return;
} }
copay.Compatibility.deleteOldWallet(backupOldWallet); copay.Compatibility.deleteOldWallet(backupOldWallet);
}); });

View file

@ -314,7 +314,7 @@ angular.module('copayApp.services')
}; };
root.importWallet = function(encryptedObj, pass, opts, cb) { root.importWallet = function(encryptedObj, pass, opts, cb) {
copay.Compatibility.importEncryptedWallet($rootScope.iden, encryptedObj, pass, opts); copay.Compatibility.importEncryptedWallet($rootScope.iden, encryptedObj, pass, opts, cb);
}; };
root.joinWallet = function(opts, cb) { root.joinWallet = function(opts, cb) {