-
- {#each Object.entries(tagmap) as [tagType, tagList]}
-
- Tag Type: {tagType}
-
- {tagList.length} Tag{(tagList.length != 1)?'s':''}
-
-
- {#each tagList as tag (tag.id)}
- {#if tag.scope == "global"}
-
- {tag.name}
- {tag.count} Job{(tag.count != 1)?'s':''}
- Global
-
- {:else if tag.scope == "admin"}
-
- {tag.name}
- {tag.count} Job{(tag.count != 1)?'s':''}
- Admin
-
- {:else}
-
- {tag.name}
- {tag.count} Job{(tag.count != 1)?'s':''}
- Private
-
- {/if}
- {/each}
- {/each}
+
+
+ {#each Object.entries(tagmap) as [tagType, tagList]}
+
+ Tag Type: {tagType}
+ {#if pendingChange === tagType}
+
+ {/if}
+
+ {tagList.length} Tag{(tagList.length != 1)?'s':''}
+
+
+ {#each tagList as tag (tag.id)}
+ {#if tag.scope == "global"}
+
+
+ {#if isAdmin}
+
+ {/if}
+
+ {:else if tag.scope == "admin"}
+
+
+ {#if isAdmin}
+
+ {/if}
+
+ {:else}
+
+
+ {#if tag.scope == username}
+
+ {/if}
+
+ {/if}
+ {/each}
+
+ {/each}
+
diff --git a/web/frontend/src/tags.entrypoint.js b/web/frontend/src/tags.entrypoint.js
index 14df2f9..024a92d 100644
--- a/web/frontend/src/tags.entrypoint.js
+++ b/web/frontend/src/tags.entrypoint.js
@@ -4,9 +4,13 @@ import Tags from './Tags.root.svelte'
new Tags({
target: document.getElementById('svelte-app'),
props: {
- // authlevel: authlevel,
+ username: username,
+ isAdmin: isAdmin,
tagmap: tagmap,
- }
+ },
+ context: new Map([
+ ['cc-config', clusterCockpitConfig]
+ ])
})
diff --git a/web/templates/monitoring/taglist.tmpl b/web/templates/monitoring/taglist.tmpl
index 4388e94..66122fe 100644
--- a/web/templates/monitoring/taglist.tmpl
+++ b/web/templates/monitoring/taglist.tmpl
@@ -6,8 +6,10 @@
{{end}}
{{define "javascript"}}
{{end}}