From d82ad195f869d57088ad71c6a990691e0e623c8e Mon Sep 17 00:00:00 2001 From: Matthew Grotke Date: Tue, 26 May 2026 03:22:44 -0400 Subject: [PATCH] Development --- docker/routlin-dash/app/view_page.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docker/routlin-dash/app/view_page.py b/docker/routlin-dash/app/view_page.py index af25e4f..6280e4e 100644 --- a/docker/routlin-dash/app/view_page.py +++ b/docker/routlin-dash/app/view_page.py @@ -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); + } }); }); })();