Development

This commit is contained in:
Matthew Grotke 2026-05-26 03:22:44 -04:00
parent 163b2df247
commit d82ad195f8

View file

@ -2674,13 +2674,22 @@ function startApplyPoller(uuid, bar, mine) {
startApplyPoller(bar.getAttribute('data-apply-uuid'), bar, false);
});
document.querySelectorAll('[data-health-uuid]').forEach(function(el) {
var bar = el.closest('.info-bar');
startPoller(el.getAttribute('data-health-uuid'), {
onPending: function(nextIn) {
if (bar) bar.classList.remove('info-bar-running');
el.textContent = nextIn === null ? 'Fix pending. The processing service is not running.'
: 'Fix will be applied ' + timingPhrase(nextIn) + '.';
},
onRunning: function() { el.textContent = 'Fix is being applied now...'; },
onComplete: function() { el.textContent = 'Fix has been applied.'; setTimeout(function() { window.location.reload(); }, 2500); }
onRunning: function() {
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);
}
});
});
})();