From a337482fa265caf20d7c2c29f17506a1b7f664f4 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Fri, 28 Apr 2023 14:34:44 +0200 Subject: [PATCH] Add shared metric marker to job view plots --- web/frontend/src/Job.root.svelte | 3 ++- web/frontend/src/Metric.svelte | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/frontend/src/Job.root.svelte b/web/frontend/src/Job.root.svelte index 62ce2b7..bbd02fa 100644 --- a/web/frontend/src/Job.root.svelte +++ b/web/frontend/src/Job.root.svelte @@ -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} No data for {item.metric} {/if} diff --git a/web/frontend/src/Metric.svelte b/web/frontend/src/Metric.svelte index 7803313..ad691ca 100644 --- a/web/frontend/src/Metric.svelte +++ b/web/frontend/src/Metric.svelte @@ -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}