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
2 changed files with 5 additions and 1 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'};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
var server = require('./app');
|
||||
var port = process.env.PORT || 3000;
|
||||
|
||||
server.start(port, function(loc){
|
||||
server.start(port, function(loc) {
|
||||
console.log('Listening at: ' + loc);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue