From 1b82c3b52e46f359232761abe384e7536db197a6 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Fri, 27 Jun 2014 15:07:07 -0300 Subject: [PATCH] remove insight custom notification --- index.html | 10 ---------- js/controllers/header.js | 8 +++++--- js/services/controllerUtils.js | 7 ------- 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/index.html b/index.html index a94954c57..df53bdefd 100644 --- a/index.html +++ b/index.html @@ -90,16 +90,6 @@ -
-
-
- Having troubles connecting to Insight server. Check - you settings and Internet connection.
- Reconnect Atempt #{{$root.insightError}} -
-
-
-
diff --git a/js/controllers/header.js b/js/controllers/header.js index 7d3d3d692..eeafd4517 100644 --- a/js/controllers/header.js +++ b/js/controllers/header.js @@ -49,14 +49,16 @@ angular.module('copayApp.controllers').controller('HeaderController', $rootScope.txAlertCount = 0; $rootScope.insightError = 0; + $rootScope.$watch('insightError', function(status) { if (status === -1) { - notification.success('Networking restored', 'Connection to insight restored'); - $rootScope.insightError = 0; + notification.success('Networking restored', 'Connection to Insight re-established'); + //$rootScope.insightError = 0; + } else { + notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number '+status+')'); } }); - // Init socket handlers (with no wallet yet) controllerUtils.setSocketHandlers(); diff --git a/js/services/controllerUtils.js b/js/services/controllerUtils.js index cbc293a1f..c823a2843 100644 --- a/js/services/controllerUtils.js +++ b/js/services/controllerUtils.js @@ -69,13 +69,6 @@ angular.module('copayApp.services') $rootScope.txAlertCount = 0; $rootScope.insightError = 0; $rootScope.isCollapsed = true; - $rootScope.$watch('insightError', function(status) { - if (status === -1) { - notification.success('Networking restored', 'Connection to Insight re-established'); - $rootScope.insightError = 0; - } - }); - $rootScope.$watch('txAlertCount', function(txAlertCount) { if (txAlertCount && txAlertCount > 0) { notification.info('New Transaction', ($rootScope.txAlertCount == 1) ? 'You have a pending transaction proposal' : 'You have ' + $rootScope.txAlertCount + ' pending transaction proposals', txAlertCount);