remove insight custom notification
This commit is contained in:
parent
27a7b56ea7
commit
1b82c3b52e
3 changed files with 5 additions and 20 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue