Reorg import forms

This commit is contained in:
Gustavo Cortez 2014-06-02 18:04:13 -03:00
commit 071e6700e1
2 changed files with 9 additions and 5 deletions

View file

@ -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;
}