diff --git a/static/app.js b/static/app.js index c3d1497..c47dd34 100644 --- a/static/app.js +++ b/static/app.js @@ -95,7 +95,7 @@ function updateStatusBar(summary, lastCheck, daemonOk) { const scRes = document.getElementById('stat-resolved-val'); if (scCrit) scCrit.textContent = critCount; if (scWarn) scWarn.textContent = warnCount; - if (scRes && summary.resolved_24h != null) scRes.textContent = summary.resolved_24h; + if (scRes && summary.resolved_24h !== null && summary.resolved_24h !== undefined) scRes.textContent = summary.resolved_24h; const statCritCard = document.getElementById('stat-critical'); if (statCritCard) statCritCard.classList.toggle('lt-stat-card--alert', critCount > 0); @@ -207,7 +207,7 @@ function updateEventsTable(events, totalActive) { return; } - const truncated = totalActive != null && totalActive > active.length; + const truncated = totalActive !== null && totalActive !== undefined && totalActive > active.length; const countNotice = truncated ? `
Showing ${active.length} of ${totalActive} active alerts — view all via API
` : ''; diff --git a/static/style.css b/static/style.css index 1b15d72..ce13f91 100644 --- a/static/style.css +++ b/static/style.css @@ -83,13 +83,16 @@ .lt-main.lt-container { padding-top: calc(46px + var(--space-sm)); } } -/* ── Refresh button loading state ────────────────────────────────── */ -[data-action="refresh"].is-loading { +/* ── Button loading state ─────────────────────────────────────────── */ +[data-action="refresh"].is-loading, +.lt-btn.is-loading { opacity: .5; pointer-events: none; cursor: wait; + position: relative; } -[data-action="refresh"].is-loading::after { +[data-action="refresh"].is-loading::after, +.lt-btn.is-loading::after { content: '…'; } @@ -587,7 +590,6 @@ .panel-toggle { font-size: .65em; color: var(--text-muted); flex-shrink: 0; margin-left: 6px; padding: 0 4px; border: 1px solid var(--border-color); } .link-host-panel.collapsed > .link-ifaces-grid { display: none; } -.link-collapse-bar { display: flex; gap: 8px; margin-bottom: 10px; } .link-ifaces-grid { display: grid; diff --git a/templates/base.html b/templates/base.html index e605a11..2cd0920 100644 --- a/templates/base.html +++ b/templates/base.html @@ -210,7 +210,7 @@ | [ S ] SUPPRESS | - {% elif request.endpoint == 'links_page' %} + {% elif request.endpoint in ('links_page', 'inspector') %} [ R ] REFRESH | {% endif %} @@ -233,7 +233,7 @@ ShortcutAction Ctrl / ⌘ + KCommand palette - RRefresh data (Dashboard / Link Debug) + RRefresh data (Dashboard / Link Debug / Inspector) SQuick-suppress alert (Dashboard) *Open settings ?Show this help