Footprint in jobList as selectable

This commit is contained in:
Christoph Kluge
2023-11-20 17:53:12 +01:00
parent dc86523cce
commit 8d409eed0f
6 changed files with 64 additions and 10 deletions

View File

@@ -17,12 +17,14 @@
export let configName
export let allMetrics = null
export let cluster = null
export let showFootprint
const clusters = getContext('clusters'),
onInit = getContext('on-init')
let newMetricsOrder = []
let unorderedMetrics = [...metrics]
let pendingShowFootprint = showFootprint || false
onInit(() => {
if (allMetrics == null) allMetrics = new Set()
@@ -90,6 +92,8 @@
metrics = newMetricsOrder.filter(m => unorderedMetrics.includes(m))
isOpen = false
showFootprint = pendingShowFootprint ? true : false
updateConfigurationMutation({
name: cluster == null ? configName : `${configName}:${cluster}`,
value: JSON.stringify(metrics)
@@ -121,6 +125,10 @@
</ModalHeader>
<ModalBody>
<ListGroup>
<li class="list-group-item">
<input type="checkbox" bind:checked={pendingShowFootprint}> Show Footprint
</li>
<hr/>
{#each newMetricsOrder as metric, index (metric)}
<li class="cc-config-column list-group-item"
draggable={true} ondragover="return false"