Merge branch '275_add_tag_scope' into 275_tag_scope_jobview_rework

This commit is contained in:
Christoph Kluge 2024-09-16 15:04:01 +02:00
commit 9579887fc4
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@
duration, numNodes, numHWThreads, numAcc,
SMT, exclusive, partition, subCluster, arrayJobId,
monitoringStatus, state, walltime,
tags { id, type, name },
tags { id, type, scope, name },
resources { hostname, hwthreads, accelerators },
metaData,
userData { name, email },

View File

@ -39,7 +39,7 @@
{#if tag}
{#if tag?.scope === "global"}
<span style="background-color:#c85fc8;" class="badge text-dark">{tag.type}: {tag.name}</span>
{:else if tag.scope === "admin"}
{:else if tag?.scope === "admin"}
<span style="background-color:#19e5e6;" class="badge text-dark">{tag.type}: {tag.name}</span>
{:else}
<span class="badge bg-warning text-dark">{tag.type}: {tag.name}</span>