insight REST API retry
This commit is contained in:
parent
1a1b235aef
commit
da7c2c88db
8 changed files with 65 additions and 48 deletions
|
|
@ -35,19 +35,15 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
|||
|
||||
// Initialize alert notification (not show when init wallet)
|
||||
$rootScope.txAlertCount = 0;
|
||||
$rootScope.insightError = -1;
|
||||
|
||||
$rootScope.$watch('blockChainStatus', function(status) {
|
||||
var h = config.blockchain.host + ':' + config.blockchain.port;
|
||||
if (status === 'error')
|
||||
$rootScope.insightError = 1;
|
||||
else
|
||||
if (status === 'restored') {
|
||||
$rootScope.insightError = 0;
|
||||
$rootScope.$flashMessage = {
|
||||
type: 'success',
|
||||
message: 'Networking Restored',
|
||||
};
|
||||
}
|
||||
$rootScope.$watch('insightError', function(status) {
|
||||
if (status === 0) {
|
||||
$rootScope.$flashMessage = {
|
||||
type: 'success',
|
||||
message: 'Networking Restored :)',
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue