Development
This commit is contained in:
parent
163b2df247
commit
d82ad195f8
1 changed files with 11 additions and 2 deletions
|
|
@ -2674,13 +2674,22 @@ function startApplyPoller(uuid, bar, mine) {
|
||||||
startApplyPoller(bar.getAttribute('data-apply-uuid'), bar, false);
|
startApplyPoller(bar.getAttribute('data-apply-uuid'), bar, false);
|
||||||
});
|
});
|
||||||
document.querySelectorAll('[data-health-uuid]').forEach(function(el) {
|
document.querySelectorAll('[data-health-uuid]').forEach(function(el) {
|
||||||
|
var bar = el.closest('.info-bar');
|
||||||
startPoller(el.getAttribute('data-health-uuid'), {
|
startPoller(el.getAttribute('data-health-uuid'), {
|
||||||
onPending: function(nextIn) {
|
onPending: function(nextIn) {
|
||||||
|
if (bar) bar.classList.remove('info-bar-running');
|
||||||
el.textContent = nextIn === null ? 'Fix pending. The processing service is not running.'
|
el.textContent = nextIn === null ? 'Fix pending. The processing service is not running.'
|
||||||
: 'Fix will be applied ' + timingPhrase(nextIn) + '.';
|
: 'Fix will be applied ' + timingPhrase(nextIn) + '.';
|
||||||
},
|
},
|
||||||
onRunning: function() { el.textContent = 'Fix is being applied now...'; },
|
onRunning: function() {
|
||||||
onComplete: function() { el.textContent = 'Fix has been applied.'; setTimeout(function() { window.location.reload(); }, 2500); }
|
if (bar) bar.classList.add('info-bar-running');
|
||||||
|
el.textContent = 'Fix is being applied now...';
|
||||||
|
},
|
||||||
|
onComplete: function() {
|
||||||
|
if (bar) bar.classList.remove('info-bar-running');
|
||||||
|
el.textContent = 'Fix has been applied.';
|
||||||
|
setTimeout(function() { window.location.reload(); }, 2500);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue