adapt and improve svelte taglist component

This commit is contained in:
Christoph Kluge
2025-04-22 17:33:17 +02:00
parent 277f964b30
commit a3fb471546
3 changed files with 137 additions and 38 deletions

View File

@@ -6,8 +6,10 @@
{{end}}
{{define "javascript"}}
<script>
const authlevel = {{ .User.GetAuthLevel }};
const username = {{ .User.Username }};
const isAdmin = {{ .User.HasRole .Roles.admin }};
const tagmap = {{ .Infos.tagmap }};
const clusterCockpitConfig = {{ .Config }};
</script>
<script src='/build/taglist.js'></script>
{{end}}