Skip to content

Commit

Permalink
Add footprint select to user jobList
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Nov 28, 2023
1 parent d97fa37 commit 173975a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion web/frontend/src/Jobs.root.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@
configName="plot_list_selectedMetrics"
bind:metrics={metrics}
bind:isOpen={isMetricsSelectionOpen}
bind:showFootprint={showFootprint}/>
bind:showFootprint={showFootprint}
view='list'/>
3 changes: 3 additions & 0 deletions web/frontend/src/MetricSelection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
export let allMetrics = null
export let cluster = null
export let showFootprint
export let view = 'job'
const clusters = getContext('clusters'),
onInit = getContext('on-init')
Expand Down Expand Up @@ -135,10 +136,12 @@
</ModalHeader>
<ModalBody>
<ListGroup>
{#if view === 'list'}
<li class="list-group-item">
<input type="checkbox" bind:checked={pendingShowFootprint}> Show Footprint
</li>
<hr/>
{/if}
{#each newMetricsOrder as metric, index (metric)}
<li class="cc-config-column list-group-item"
draggable={true} ondragover="return false"
Expand Down
10 changes: 8 additions & 2 deletions web/frontend/src/User.root.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
let metrics = ccconfig.plot_list_selectedMetrics, isMetricsSelectionOpen = false
let w1, w2, histogramHeight = 250
let selectedCluster = filterPresets?.cluster ? filterPresets.cluster : null
let showFootprint = filterPresets.cluster
? !!ccconfig[`plot_list_showFootprint:${filterPresets.cluster}`]
: !!ccconfig.plot_list_showFootprint
const client = getContextClient();
$: stats = queryStore({
Expand Down Expand Up @@ -165,7 +168,8 @@
<JobList
bind:metrics={metrics}
bind:sorting={sorting}
bind:this={jobList} />
bind:this={jobList}
bind:showFootprint={showFootprint} />
</Col>
</Row>

Expand All @@ -177,4 +181,6 @@
bind:cluster={selectedCluster}
configName="plot_list_selectedMetrics"
bind:metrics={metrics}
bind:isOpen={isMetricsSelectionOpen} />
bind:isOpen={isMetricsSelectionOpen}
bind:showFootprint={showFootprint}
view='list'/>

0 comments on commit 173975a

Please sign in to comment.