mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-11-03 00:55:06 +01:00
Fix exclusive to shared in svlete and graphql
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
Missing Metric
|
||||
</Button>
|
||||
</InputGroup>
|
||||
{:else if nodeJobsData.jobs.count == 1 && nodeJobsData.jobs.items[0].exclusive}
|
||||
{:else if nodeJobsData.jobs.count == 1 && nodeJobsData.jobs.items[0].shared == "none"}
|
||||
<InputGroup>
|
||||
<InputGroupText>
|
||||
<Icon name="circle-fill"/>
|
||||
@@ -104,7 +104,7 @@
|
||||
Exclusive
|
||||
</Button>
|
||||
</InputGroup>
|
||||
{:else if nodeJobsData.jobs.count >= 1 && !nodeJobsData.jobs.items[0].exclusive}
|
||||
{:else if nodeJobsData.jobs.count >= 1 && !(nodeJobsData.jobs.items[0].shared == "none")}
|
||||
<InputGroup>
|
||||
<InputGroupText>
|
||||
<Icon name="circle-half"/>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
jobId
|
||||
user
|
||||
project
|
||||
exclusive
|
||||
shared
|
||||
resources {
|
||||
hostname
|
||||
accelerators
|
||||
@@ -101,7 +101,7 @@
|
||||
function buildExtendedLegend() {
|
||||
let pendingExtendedLegendData = null
|
||||
// Build Extended for allocated nodes [Commented: Only Build extended Legend For Shared Nodes]
|
||||
if ($nodeJobsData.data.jobs.count >= 1) { // "&& !$nodeJobsData.data.jobs.items[0].exclusive)"
|
||||
if ($nodeJobsData.data.jobs.count >= 1) {
|
||||
const accSet = Array.from(new Set($nodeJobsData.data.jobs.items
|
||||
.map((i) => i.resources
|
||||
.filter((r) => (r.hostname === nodeData.host) && r?.accelerators)
|
||||
|
||||
Reference in New Issue
Block a user