From c21da6512adcf024731ffeae187d6db949f1f31b Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Fri, 24 Jan 2025 16:17:51 +0100 Subject: [PATCH] fix rerender by keys, disable resolution select if no resampling active --- web/frontend/src/Systems.root.svelte | 30 +++--- web/frontend/src/systems/NodeList.svelte | 3 + .../src/systems/nodelist/NodeListRow.svelte | 98 ++++++++++--------- 3 files changed, 69 insertions(+), 62 deletions(-) diff --git a/web/frontend/src/Systems.root.svelte b/web/frontend/src/Systems.root.svelte index b9457d9..4086667 100644 --- a/web/frontend/src/Systems.root.svelte +++ b/web/frontend/src/Systems.root.svelte @@ -93,7 +93,7 @@ - + {#if $initq.data} {#if !displayNodeOverview} @@ -110,19 +110,21 @@ - - - - Resolution - - {#each resampleResolutions as res} - - {/each} - - - + {#if resampleConfig} + + + + Resolution + + {#each resampleResolutions as res} + + {/each} + + + + {/if} {/if} diff --git a/web/frontend/src/systems/NodeList.svelte b/web/frontend/src/systems/NodeList.svelte index f9aae29..ad64a1f 100644 --- a/web/frontend/src/systems/NodeList.svelte +++ b/web/frontend/src/systems/NodeList.svelte @@ -181,6 +181,9 @@ style="padding-top: {headerPaddingTop}px;" > {cluster} Node Info + {#if $nodesQuery.fetching} + + {/if} {#each selectedMetrics as metric (metric)} diff --git a/web/frontend/src/systems/nodelist/NodeListRow.svelte b/web/frontend/src/systems/nodelist/NodeListRow.svelte index 329f960..a1e4a54 100644 --- a/web/frontend/src/systems/nodelist/NodeListRow.svelte +++ b/web/frontend/src/systems/nodelist/NodeListRow.svelte @@ -133,53 +133,55 @@ {/if} {#each refinedData as metricData (metricData.data.name)} - - {#if metricData?.disabled} - Metric disabled for subcluster {metricData.data.name}:{nodeData.subCluster} - {:else if !!metricData.data?.metric.statisticsSeries} - - -
- {#key extendedLegendData} - - {/key} - {:else} - - {/if} - + {#key metricData} + + {#if metricData?.disabled} + Metric disabled for subcluster {metricData.data.name}:{nodeData.subCluster} + {:else if !!metricData.data?.metric.statisticsSeries} + + +
+ {#key extendedLegendData} + + {/key} + {:else} + + {/if} + + {/key} {/each}