Add error message on wallet import while the wallet is already open

This commit is contained in:
Yemel Jardi 2014-06-05 13:41:40 -03:00
commit a393654cd5

View file

@ -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'};
});
});
};