fix import wallet
This commit is contained in:
parent
3607056d64
commit
e5f4844ca5
4 changed files with 26 additions and 19 deletions
|
|
@ -50,8 +50,10 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
|
|||
};
|
||||
|
||||
$scope.import = function(form) {
|
||||
$scope.loading = true;
|
||||
|
||||
if (form.$invalid) {
|
||||
$scope.loading = false;
|
||||
$scope.error = 'Please enter the required fields';
|
||||
return;
|
||||
}
|
||||
|
|
@ -60,11 +62,11 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
|
|||
var password = form.password.$modelValue;
|
||||
|
||||
if (!backupFile && !backupText) {
|
||||
$scope.loading = false;
|
||||
$scope.error = 'Please, select your backup file';
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.loading = true;
|
||||
$timeout(function() {
|
||||
if (backupFile) {
|
||||
reader.readAsBinaryString(backupFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue