Reorg import forms
This commit is contained in:
parent
47d1838cd5
commit
071e6700e1
2 changed files with 9 additions and 5 deletions
|
|
@ -23,6 +23,7 @@ angular.module('copay.import').controller('ImportController',
|
|||
|
||||
$scope.import = function(form) {
|
||||
if (form.$invalid) {
|
||||
$scope.loading = false;
|
||||
$rootScope.$flashMessage = { message: 'There is an error in the form. Please, try again', type: 'error'};
|
||||
return;
|
||||
}
|
||||
|
|
@ -33,6 +34,7 @@ angular.module('copay.import').controller('ImportController',
|
|||
|
||||
if (!backupFile && !backupText) {
|
||||
$rootScope.$flashMessage = { message: 'Please, select your backup file or paste the text', type: 'error'};
|
||||
$scope.loading = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue