add jobSummary conditional display

This commit is contained in:
Christoph Kluge
2026-01-16 17:26:24 +01:00
parent eb09504306
commit 1d41ff8190

View File

@@ -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}
{#if showSummary}
<JobSummary job={$initq.data.job}/> <JobSummary job={$initq.data.job}/>
{/if}
{:else} {:else}
<Spinner secondary /> <Spinner secondary />
{/if} {/if}