remove flashmessages from import

This commit is contained in:
Manuel Araoz 2014-06-26 17:27:46 -03:00
commit 710160ff84

View file

@ -18,10 +18,7 @@ angular.module('copayApp.controllers').controller('ImportController',
var w = walletFactory.import(encryptedObj, passphrase, function(err, w) { var w = walletFactory.import(encryptedObj, passphrase, function(err, w) {
if (err) { if (err) {
$scope.loading = false; $scope.loading = false;
$rootScope.$flashMessage = { notification.error('Error', err.errMsg || 'Wrong password');
message: err.errMsg || 'Wrong password',
type: 'error'
};
$rootScope.$digest(); $rootScope.$digest();
return; return;
} }
@ -59,10 +56,7 @@ angular.module('copayApp.controllers').controller('ImportController',
$scope.import = function(form) { $scope.import = function(form) {
if (form.$invalid) { if (form.$invalid) {
$scope.loading = false; $scope.loading = false;
$rootScope.$flashMessage = { notification.error('Error', 'There is an error in the form.');
message: 'There is an error in the form. Please, try again',
type: 'error'
};
return; return;
} }
@ -72,10 +66,7 @@ angular.module('copayApp.controllers').controller('ImportController',
if (!backupFile && !backupText) { if (!backupFile && !backupText) {
$scope.loading = false; $scope.loading = false;
$rootScope.$flashMessage = { notification.error('Error', 'Please, select your backup file or paste the file contents');
message: 'Please, select your backup file or paste the text',
type: 'error'
};
$scope.loading = false; $scope.loading = false;
return; return;
} }