Skip to content

Commit

Permalink
fix missing scope field request for jobview
Browse files Browse the repository at this point in the history
  • Loading branch information
spacehamster87 committed Sep 16, 2024
1 parent ccbf386 commit e29be2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/frontend/src/Job.root.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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 },
Expand Down
2 changes: 1 addition & 1 deletion web/frontend/src/generic/helper/Tag.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e29be2f

Please sign in to comment.