Add shared metric marker to job view plots

This commit is contained in:
Christoph Kluge 2023-04-28 14:34:44 +02:00
parent d93610f700
commit a337482fa2
2 changed files with 5 additions and 2 deletions

View File

@ -166,7 +166,8 @@
metricName={item.metric}
rawData={item.data.map(x => x.metric)}
scopes={item.data.map(x => x.scope)}
width={width}/>
width={width}
isShared={($initq.data.job.exclusive != 1)}/>
{:else}
<Card body color="warning">No data for <code>{item.metric}</code></Card>
{/if}

View File

@ -9,6 +9,7 @@
export let scopes
export let width
export let rawData
export let isShared = false
const dispatch = createEventDispatcher()
const cluster = getContext('clusters').find(cluster => cluster.name == job.cluster)
@ -87,6 +88,7 @@
cluster={cluster} subCluster={subCluster}
timestep={data.timestep}
scope={selectedScope} metric={metricName}
series={series} />
series={series}
isShared={isShared} />
{/if}
{/key}