diff --git a/webui/html/index.html b/webui/html/index.html index bda5b5a..4e0731b 100644 --- a/webui/html/index.html +++ b/webui/html/index.html @@ -903,7 +903,7 @@ }); containersStatsES.onerror = () => { - // EventSource reconnect automatisch; geen actie nodig + resetPodTotals(); }; } @@ -911,8 +911,18 @@ if (!containersStatsES) return; containersStatsES.close(); containersStatsES = null; + resetPodTotals(); } + function resetPodTotals() { + document.querySelectorAll('[id^="podcpu-"]').forEach(el => { + el.textContent = '-'; + }); + document.querySelectorAll('[id^="podmem-"]').forEach(el => { + el.textContent = '-'; + }); + } + async function containerInspect(name) { try { const res = await api(`/containers/inspect/${encodeURIComponent(name)}`, 'GET');