From a393654cd59cbc5d839c60a3c3819abbb2328ab7 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Thu, 5 Jun 2014 13:41:40 -0300 Subject: [PATCH] Add error message on wallet import while the wallet is already open --- js/controllers/import.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/controllers/import.js b/js/controllers/import.js index 80292075a..13a891113 100644 --- a/js/controllers/import.js +++ b/js/controllers/import.js @@ -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'}; + }); }); };