mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
Fix: make footprint display configurable app-wide
- note: requires full ui-defaults object in config
This commit is contained in:
parent
82f5257cf1
commit
849b7e038d
@ -31,6 +31,7 @@ var Keys schema.ProgramConfig = schema.ProgramConfig{
|
|||||||
"job_view_nodestats_selectedMetrics": []string{"flops_any", "mem_bw", "mem_used"},
|
"job_view_nodestats_selectedMetrics": []string{"flops_any", "mem_bw", "mem_used"},
|
||||||
"job_view_polarPlotMetrics": []string{"flops_any", "mem_bw", "mem_used"},
|
"job_view_polarPlotMetrics": []string{"flops_any", "mem_bw", "mem_used"},
|
||||||
"job_view_selectedMetrics": []string{"flops_any", "mem_bw", "mem_used"},
|
"job_view_selectedMetrics": []string{"flops_any", "mem_bw", "mem_used"},
|
||||||
|
"job_view_showFootprint": true,
|
||||||
"plot_general_colorBackground": true,
|
"plot_general_colorBackground": true,
|
||||||
"plot_general_colorscheme": []string{"#00bfff", "#0000ff", "#ff00ff", "#ff0000", "#ff8000", "#ffff00", "#80ff00"},
|
"plot_general_colorscheme": []string{"#00bfff", "#0000ff", "#ff00ff", "#ff0000", "#ff8000", "#ffff00", "#80ff00"},
|
||||||
"plot_general_lineWidth": 3,
|
"plot_general_lineWidth": 3,
|
||||||
|
@ -65,6 +65,7 @@
|
|||||||
|
|
||||||
let isMetricsSelectionOpen = false,
|
let isMetricsSelectionOpen = false,
|
||||||
selectedMetrics = [],
|
selectedMetrics = [],
|
||||||
|
showFootprint = true,
|
||||||
isFetched = new Set();
|
isFetched = new Set();
|
||||||
const [jobMetrics, startFetching] = fetchMetricsStore();
|
const [jobMetrics, startFetching] = fetchMetricsStore();
|
||||||
getContext("on-init")(() => {
|
getContext("on-init")(() => {
|
||||||
@ -77,6 +78,9 @@
|
|||||||
.find((c) => c.name == job.cluster)
|
.find((c) => c.name == job.cluster)
|
||||||
.metricConfig.map((mc) => mc.name);
|
.metricConfig.map((mc) => mc.name);
|
||||||
|
|
||||||
|
showFootprint =
|
||||||
|
ccconfig[`job_view_showFootprint`]
|
||||||
|
|
||||||
let toFetch = new Set([
|
let toFetch = new Set([
|
||||||
"flops_any",
|
"flops_any",
|
||||||
"mem_bw",
|
"mem_bw",
|
||||||
@ -209,7 +213,7 @@
|
|||||||
<Spinner secondary />
|
<Spinner secondary />
|
||||||
{/if}
|
{/if}
|
||||||
</Col>
|
</Col>
|
||||||
{#if $jobMetrics.data}
|
{#if $jobMetrics.data && showFootprint}
|
||||||
{#key $jobMetrics.data}
|
{#key $jobMetrics.data}
|
||||||
<Col>
|
<Col>
|
||||||
<JobFootprint
|
<JobFootprint
|
||||||
|
Loading…
Reference in New Issue
Block a user