mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Add footprint select to user jobList
This commit is contained in:
parent
d97fa37d2c
commit
173975aadd
@ -98,4 +98,5 @@
|
|||||||
configName="plot_list_selectedMetrics"
|
configName="plot_list_selectedMetrics"
|
||||||
bind:metrics={metrics}
|
bind:metrics={metrics}
|
||||||
bind:isOpen={isMetricsSelectionOpen}
|
bind:isOpen={isMetricsSelectionOpen}
|
||||||
bind:showFootprint={showFootprint}/>
|
bind:showFootprint={showFootprint}
|
||||||
|
view='list'/>
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
export let allMetrics = null
|
export let allMetrics = null
|
||||||
export let cluster = null
|
export let cluster = null
|
||||||
export let showFootprint
|
export let showFootprint
|
||||||
|
export let view = 'job'
|
||||||
|
|
||||||
const clusters = getContext('clusters'),
|
const clusters = getContext('clusters'),
|
||||||
onInit = getContext('on-init')
|
onInit = getContext('on-init')
|
||||||
@ -135,10 +136,12 @@
|
|||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
<ListGroup>
|
<ListGroup>
|
||||||
|
{#if view === 'list'}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<input type="checkbox" bind:checked={pendingShowFootprint}> Show Footprint
|
<input type="checkbox" bind:checked={pendingShowFootprint}> Show Footprint
|
||||||
</li>
|
</li>
|
||||||
<hr/>
|
<hr/>
|
||||||
|
{/if}
|
||||||
{#each newMetricsOrder as metric, index (metric)}
|
{#each newMetricsOrder as metric, index (metric)}
|
||||||
<li class="cc-config-column list-group-item"
|
<li class="cc-config-column list-group-item"
|
||||||
draggable={true} ondragover="return false"
|
draggable={true} ondragover="return false"
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
let metrics = ccconfig.plot_list_selectedMetrics, isMetricsSelectionOpen = false
|
let metrics = ccconfig.plot_list_selectedMetrics, isMetricsSelectionOpen = false
|
||||||
let w1, w2, histogramHeight = 250
|
let w1, w2, histogramHeight = 250
|
||||||
let selectedCluster = filterPresets?.cluster ? filterPresets.cluster : null
|
let selectedCluster = filterPresets?.cluster ? filterPresets.cluster : null
|
||||||
|
let showFootprint = filterPresets.cluster
|
||||||
|
? !!ccconfig[`plot_list_showFootprint:${filterPresets.cluster}`]
|
||||||
|
: !!ccconfig.plot_list_showFootprint
|
||||||
|
|
||||||
const client = getContextClient();
|
const client = getContextClient();
|
||||||
$: stats = queryStore({
|
$: stats = queryStore({
|
||||||
@ -165,7 +168,8 @@
|
|||||||
<JobList
|
<JobList
|
||||||
bind:metrics={metrics}
|
bind:metrics={metrics}
|
||||||
bind:sorting={sorting}
|
bind:sorting={sorting}
|
||||||
bind:this={jobList} />
|
bind:this={jobList}
|
||||||
|
bind:showFootprint={showFootprint} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
@ -177,4 +181,6 @@
|
|||||||
bind:cluster={selectedCluster}
|
bind:cluster={selectedCluster}
|
||||||
configName="plot_list_selectedMetrics"
|
configName="plot_list_selectedMetrics"
|
||||||
bind:metrics={metrics}
|
bind:metrics={metrics}
|
||||||
bind:isOpen={isMetricsSelectionOpen} />
|
bind:isOpen={isMetricsSelectionOpen}
|
||||||
|
bind:showFootprint={showFootprint}
|
||||||
|
view='list'/>
|
Loading…
Reference in New Issue
Block a user