{#each metrics as metric (metric)} {/each} {#if $jobs.error} {:else if $jobs.fetching || !$jobs.data} {:else if $jobs.data && $initialized} {#each $jobs.data.jobs.items as job (job)} {:else} {/each} {/if}
Job Info {metric} {#if $initialized} ({clusters .map((cluster) => cluster.metricConfig.find( (m) => m.name == metric ) ) .filter((m) => m != null) .map( (m) => (m.unit?.prefix ? m.unit?.prefix : "") + (m.unit?.base ? m.unit?.base : "") ) // Build unitStr .reduce( (arr, unitStr) => arr.includes(unitStr) ? arr : [...arr, unitStr], [] ) // w/o this, output would be [unitStr, unitStr] .join(", ")}) {/if}

{$jobs.error.message}

No jobs found
{ if (detail.itemsPerPage != itemsPerPage) { itemsPerPage = detail.itemsPerPage; updateConfiguration({ value: itemsPerPage.toString(), page: detail.page, }) } else { paging = { itemsPerPage: detail.itemsPerPage, page: detail.page } } }} />