mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #567 from yemel/fix/import-wallet-open
Add error message on wallet import while the wallet is already open
This commit is contained in:
commit
0e880dc378
|
@ -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…
Reference in New Issue