fix rerender by keys, disable resolution select if no resampling active

This commit is contained in:
Christoph Kluge 2025-01-24 16:17:51 +01:00
parent 735988decb
commit c21da6512a
3 changed files with 69 additions and 62 deletions

View File

@ -93,7 +93,7 @@
</script>
<!-- ROW1: Tools-->
<Row cols={{ xs: 2, lg: !displayNodeOverview ? 5 : 4 }} class="mb-3">
<Row cols={{ xs: 2, lg: !displayNodeOverview ? (resampleConfig ? 5 : 4) : 4 }} class="mb-3">
{#if $initq.data}
<!-- List Metric Select Col-->
{#if !displayNodeOverview}
@ -110,6 +110,7 @@
</Button>
</InputGroup>
</Col>
{#if resampleConfig}
<Col>
<InputGroup>
<InputGroupText><Icon name="plus-slash-minus" /></InputGroupText>
@ -124,6 +125,7 @@
</InputGroup>
</Col>
{/if}
{/if}
<!-- Node Col-->
<Col class="mt-2 mt-lg-0">
<InputGroup>

View File

@ -181,6 +181,9 @@
style="padding-top: {headerPaddingTop}px;"
>
{cluster} Node Info
{#if $nodesQuery.fetching}
<Spinner size="sm" style="margin-left:10px;" secondary />
{/if}
</th>
{#each selectedMetrics as metric (metric)}

View File

@ -133,6 +133,7 @@
{/if}
</td>
{#each refinedData as metricData (metricData.data.name)}
{#key metricData}
<td>
{#if metricData?.disabled}
<Card body class="mx-3" color="info"
@ -181,5 +182,6 @@
/>
{/if}
</td>
{/key}
{/each}
</tr>