mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-20 11:31:46 +01:00
add jobSummary conditional display
This commit is contained in:
@@ -94,6 +94,7 @@
|
|||||||
let totalMetrics = $state(0);
|
let totalMetrics = $state(0);
|
||||||
|
|
||||||
/* Derived */
|
/* Derived */
|
||||||
|
const showSummary = $derived((!!ccconfig[`jobView_showFootprint`] || !!ccconfig[`jobView_showPolarPlot`]))
|
||||||
const jobMetrics = $derived(queryStore({
|
const jobMetrics = $derived(queryStore({
|
||||||
client: client,
|
client: client,
|
||||||
query: query,
|
query: query,
|
||||||
@@ -261,7 +262,9 @@
|
|||||||
{#if $initq.error}
|
{#if $initq.error}
|
||||||
<Card body color="danger">{$initq.error.message}</Card>
|
<Card body color="danger">{$initq.error.message}</Card>
|
||||||
{:else if $initq?.data}
|
{:else if $initq?.data}
|
||||||
<JobSummary job={$initq.data.job}/>
|
{#if showSummary}
|
||||||
|
<JobSummary job={$initq.data.job}/>
|
||||||
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
<Spinner secondary />
|
<Spinner secondary />
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user