From b341167d5b2a1175c0eb58ae873ec0d0ed88688e Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 22 Jan 2026 15:59:34 -1000 Subject: Fix refresh button JS error --- web/static/js/app.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'web') diff --git a/web/static/js/app.js b/web/static/js/app.js index 4d26e66..52d0c91 100644 --- a/web/static/js/app.js +++ b/web/static/js/app.js @@ -93,18 +93,11 @@ function setActiveTab(button) { // Manual Refresh async function refreshData() { const button = event.target.closest('button'); - const refreshText = document.getElementById('refresh-text'); - const originalText = refreshText.textContent; + const icon = button.querySelector('svg'); // Show loading state button.disabled = true; - refreshText.innerHTML = ` - - - - - Refreshing... - `; + if (icon) icon.classList.add('animate-spin'); try { // Force API refresh (updates cache) @@ -142,7 +135,7 @@ async function refreshData() { } finally { // Restore button state button.disabled = false; - refreshText.textContent = originalText; + if (icon) icon.classList.remove('animate-spin'); } } -- cgit v1.2.3