remove insight custom notification
This commit is contained in:
parent
27a7b56ea7
commit
1b82c3b52e
3 changed files with 5 additions and 20 deletions
10
index.html
10
index.html
|
|
@ -90,16 +90,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row" ng-if='$root.insightError>0'>
|
|
||||||
<div class="small-8 large-centered columns">
|
|
||||||
<div data-alert class="alert-box radius error">
|
|
||||||
Having troubles connecting to Insight server. Check
|
|
||||||
you settings and Internet connection.<br>
|
|
||||||
Reconnect Atempt #{{$root.insightError}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div ng-if='$root.wallet && !$root.wallet.isReady() && !loading'>
|
<div ng-if='$root.wallet && !$root.wallet.isReady() && !loading'>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="large-12 medium-12 small-12 columns">
|
<div class="large-12 medium-12 small-12 columns">
|
||||||
|
|
|
||||||
|
|
@ -49,14 +49,16 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
$rootScope.txAlertCount = 0;
|
$rootScope.txAlertCount = 0;
|
||||||
$rootScope.insightError = 0;
|
$rootScope.insightError = 0;
|
||||||
|
|
||||||
|
|
||||||
$rootScope.$watch('insightError', function(status) {
|
$rootScope.$watch('insightError', function(status) {
|
||||||
if (status === -1) {
|
if (status === -1) {
|
||||||
notification.success('Networking restored', 'Connection to insight restored');
|
notification.success('Networking restored', 'Connection to Insight re-established');
|
||||||
$rootScope.insightError = 0;
|
//$rootScope.insightError = 0;
|
||||||
|
} else {
|
||||||
|
notification.error('Networking problem', 'Connection to Insight lost, reconnecting (attempt number '+status+')');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Init socket handlers (with no wallet yet)
|
// Init socket handlers (with no wallet yet)
|
||||||
controllerUtils.setSocketHandlers();
|
controllerUtils.setSocketHandlers();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,13 +69,6 @@ angular.module('copayApp.services')
|
||||||
$rootScope.txAlertCount = 0;
|
$rootScope.txAlertCount = 0;
|
||||||
$rootScope.insightError = 0;
|
$rootScope.insightError = 0;
|
||||||
$rootScope.isCollapsed = true;
|
$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) {
|
$rootScope.$watch('txAlertCount', function(txAlertCount) {
|
||||||
if (txAlertCount && txAlertCount > 0) {
|
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);
|
notification.info('New Transaction', ($rootScope.txAlertCount == 1) ? 'You have a pending transaction proposal' : 'You have ' + $rootScope.txAlertCount + ' pending transaction proposals', txAlertCount);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue