remove flashmessages from import
This commit is contained in:
parent
40a07e9647
commit
710160ff84
1 changed files with 3 additions and 12 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue