Add error message on wallet import while the wallet is already open
This commit is contained in:
parent
e560afbcd9
commit
a393654cd5
1 changed files with 4 additions and 0 deletions
|
|
@ -21,6 +21,10 @@ angular.module('copayApp.controllers').controller('ImportController',
|
|||
$rootScope.wallet = w;
|
||||
|
||||
controllerUtils.startNetwork($rootScope.wallet);
|
||||
$rootScope.wallet.on('connectionError', function() {
|
||||
var message = "Looks like you are already connected to this wallet, please logout from it and try importing it again.";
|
||||
$rootScope.$flashMessage = { message: message, type: 'error'};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue