Merge pull request #348 from ClusterCockpit/dev

use extendedLegend in nodeList for all non-idle nodes
This commit is contained in:
Christoph Kluge 2025-03-03 12:48:26 +01:00 committed by GitHub
commit 1ee99d6866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,8 +98,8 @@
let extendedLegendData = null; let extendedLegendData = null;
$: if ($nodeJobsData?.data) { $: if ($nodeJobsData?.data) {
// Get Shared State of Node: Only Build extended Legend For Shared Nodes // 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) { // "&& !$nodeJobsData.data.jobs.items[0].exclusive)"
const accSet = Array.from(new Set($nodeJobsData.data.jobs.items const accSet = Array.from(new Set($nodeJobsData.data.jobs.items
.map((i) => i.resources .map((i) => i.resources
.filter((r) => r.hostname === nodeData.host) .filter((r) => r.hostname === nodeData.host)