From 8045fdc869fb1b9901a190e15bfd2020cd045439 Mon Sep 17 00:00:00 2001 From: kodi Date: Wed, 4 Mar 2026 15:30:48 +0100 Subject: [PATCH] feat (ui): aantal netwerken weergeven in netwerk knop in linker menu --- webui/html/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webui/html/index.html b/webui/html/index.html index 69c3225..58bdec7 100644 --- a/webui/html/index.html +++ b/webui/html/index.html @@ -620,9 +620,10 @@ try { if (currentTab === 'containers') await fetchContainers(); else { - const [pods, containers] = await Promise.all([ + const [pods, containers, networks] = await Promise.all([ api('/pods-dashboard','GET'), - api('/containers-dashboard','GET') + api('/containers-dashboard','GET'), + api('/networks','GET').catch(() => ({ networks: [] })) ]); document.getElementById('countPods').textContent = (pods || []).length; @@ -630,6 +631,8 @@ const cCount = list.length; document.getElementById('countContainers').textContent = cCount; updateNavCount('countNavContainers', cCount); + const nCount = Array.isArray(networks?.networks) ? networks.networks.length : 0; + updateNavCount('countNavNetworks', nCount); } setApiState(true, 'API: OK'); setLastRefreshNow();