mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
Add shared metric marker to job view plots
This commit is contained in:
parent
d93610f700
commit
a337482fa2
@ -166,7 +166,8 @@
|
|||||||
metricName={item.metric}
|
metricName={item.metric}
|
||||||
rawData={item.data.map(x => x.metric)}
|
rawData={item.data.map(x => x.metric)}
|
||||||
scopes={item.data.map(x => x.scope)}
|
scopes={item.data.map(x => x.scope)}
|
||||||
width={width}/>
|
width={width}
|
||||||
|
isShared={($initq.data.job.exclusive != 1)}/>
|
||||||
{:else}
|
{:else}
|
||||||
<Card body color="warning">No data for <code>{item.metric}</code></Card>
|
<Card body color="warning">No data for <code>{item.metric}</code></Card>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
export let scopes
|
export let scopes
|
||||||
export let width
|
export let width
|
||||||
export let rawData
|
export let rawData
|
||||||
|
export let isShared = false
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
const cluster = getContext('clusters').find(cluster => cluster.name == job.cluster)
|
const cluster = getContext('clusters').find(cluster => cluster.name == job.cluster)
|
||||||
@ -87,6 +88,7 @@
|
|||||||
cluster={cluster} subCluster={subCluster}
|
cluster={cluster} subCluster={subCluster}
|
||||||
timestep={data.timestep}
|
timestep={data.timestep}
|
||||||
scope={selectedScope} metric={metricName}
|
scope={selectedScope} metric={metricName}
|
||||||
series={series} />
|
series={series}
|
||||||
|
isShared={isShared} />
|
||||||
{/if}
|
{/if}
|
||||||
{/key}
|
{/key}
|
||||||
|
Loading…
Reference in New Issue
Block a user