From 4cb8d648cbb5bd40e40462d6f0d2d4d8fa78178c Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 14 Jan 2026 11:25:40 +0100 Subject: [PATCH] adapt frontend to backend config changes, clarify variable names --- web/frontend/src/Config.root.svelte | 6 +-- web/frontend/src/Header.svelte | 36 +++++++-------- web/frontend/src/config.entrypoint.js | 2 +- web/frontend/src/config/AdminSettings.svelte | 6 +-- web/frontend/src/config/admin/Options.svelte | 12 ++--- .../src/generic/filters/Resources.svelte | 20 +-------- web/frontend/src/header.entrypoint.js | 4 +- web/frontend/src/header/NavbarLinks.svelte | 44 +++++++++---------- web/templates/base.tmpl | 4 +- 9 files changed, 58 insertions(+), 76 deletions(-) diff --git a/web/frontend/src/Config.root.svelte b/web/frontend/src/Config.root.svelte index 171b2a08..0e1daec3 100644 --- a/web/frontend/src/Config.root.svelte +++ b/web/frontend/src/Config.root.svelte @@ -7,7 +7,7 @@ - `isApi Bool!`: Is currently logged in user api authority - `username String!`: Empty string if auth. is disabled, otherwise the username as string - `ncontent String!`: The currently displayed message on the homescreen - - `clusters [String]`: The available clusternames + - `clusterNames [String]`: The available clusternames --> @@ -32,7 +32,7 @@ Admin Options - + {/if} diff --git a/web/frontend/src/Header.svelte b/web/frontend/src/Header.svelte index f7ceac2e..ea818c62 100644 --- a/web/frontend/src/Header.svelte +++ b/web/frontend/src/Header.svelte @@ -4,8 +4,8 @@ Properties: - `username String`: Empty string if auth. is disabled, otherwise the username as string - `authlevel Number`: The current users authentication level - - `clusters [String]`: List of cluster names - - `subClusters [String]`: List of subCluster names + - `clusterNames [String]`: List of cluster names + - `subclusterMap map[String][]string`: Map of subclusters by cluster names - `roles [Number]`: Enum containing available roles --> @@ -28,8 +28,8 @@ let { username, authlevel, - clusters, - subClusters, + clusterNames, + subclusterMap, roles } = $props(); @@ -152,15 +152,15 @@