remove insight custom notification

This commit is contained in:
Manuel Araoz 2014-06-27 15:07:07 -03:00
commit 1b82c3b52e
3 changed files with 5 additions and 20 deletions

View file

@ -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();