Restructure config frontend, add user jwt request

This commit is contained in:
Christoph Kluge
2024-07-04 17:30:16 +02:00
parent 614f694777
commit 9d4767539c
10 changed files with 705 additions and 570 deletions

View File

@@ -8,6 +8,8 @@
{{define "javascript"}}
<script>
const isAdmin = {{ .User.HasRole .Roles.admin }};
const isApi = {{ .User.HasRole .Roles.api }};
const username = {{ .User.Username }};
const filterPresets = {{ .FilterPresets }};
const clusterCockpitConfig = {{ .Config }};
</script>