diff --git a/web/frontend/src/systems/NodeList.svelte b/web/frontend/src/systems/NodeList.svelte index 70b28c7..38a8068 100644 --- a/web/frontend/src/systems/NodeList.svelte +++ b/web/frontend/src/systems/NodeList.svelte @@ -161,6 +161,12 @@ } } + $: if (!usePaging && selectedMetrics) { + // Continous Scroll: Reset list and paging if sleectedMetrics change: Existing entries will not match new metric selection + nodes = []; + paging = { itemsPerPage, page: 1 }; + } + $: matchedNodes = $nodesQuery.data?.nodeMetricsList.totalNodes || matchedNodes; @@ -208,7 +214,13 @@
Loading nodes {nodes.length + 1} to {nodes.length + paging.itemsPerPage} {matchedNodes ? `of ${matchedNodes} total` : ``}
++ Loading nodes {nodes.length + 1} to + { matchedNodes + ? `${(nodes.length + paging.itemsPerPage) > matchedNodes ? matchedNodes : (nodes.length + paging.itemsPerPage)} of ${matchedNodes} total` + : (nodes.length + paging.itemsPerPage) + } +