From 710160ff840bf2cc713c3607ff6f20d93bd8fac7 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 26 Jun 2014 17:27:46 -0300 Subject: [PATCH] remove flashmessages from import --- js/controllers/import.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/js/controllers/import.js b/js/controllers/import.js index 4ba9d0d0d..3756aebf6 100644 --- a/js/controllers/import.js +++ b/js/controllers/import.js @@ -18,10 +18,7 @@ angular.module('copayApp.controllers').controller('ImportController', var w = walletFactory.import(encryptedObj, passphrase, function(err, w) { if (err) { $scope.loading = false; - $rootScope.$flashMessage = { - message: err.errMsg || 'Wrong password', - type: 'error' - }; + notification.error('Error', err.errMsg || 'Wrong password'); $rootScope.$digest(); return; } @@ -59,10 +56,7 @@ angular.module('copayApp.controllers').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' - }; + notification.error('Error', 'There is an error in the form.'); return; } @@ -72,10 +66,7 @@ angular.module('copayApp.controllers').controller('ImportController', if (!backupFile && !backupText) { $scope.loading = false; - $rootScope.$flashMessage = { - message: 'Please, select your backup file or paste the text', - type: 'error' - }; + notification.error('Error', 'Please, select your backup file or paste the file contents'); $scope.loading = false; return; }