From 2b2e5c666a29545782fdb1fbaec2d34e4c2adf57 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 26 Mar 2026 22:32:28 -0400 Subject: [PATCH] fix: load all pre-selected settings tabs correctly on mount MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The watch(activeTab) handler loads tab data on navigation, but not on initial mount when localStorage restores a tab. Three more gaps: - briefing: was inside the isAdmin guard — non-admin users who last visited the Briefing tab would see an empty form - users: no onMounted equivalent — admin user list never loaded - logs: no onMounted equivalent — admin log viewer never loaded Moves briefing outside the admin guard and adds users/logs inside it. --- frontend/src/views/SettingsView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/SettingsView.vue b/frontend/src/views/SettingsView.vue index 1245690..878ae8e 100644 --- a/frontend/src/views/SettingsView.vue +++ b/frontend/src/views/SettingsView.vue @@ -522,8 +522,10 @@ onMounted(async () => { // base URL not configured yet } if (activeTab.value === "groups") loadGroupsPanel(); - if (activeTab.value === "briefing") loadBriefingTab(); + if (activeTab.value === "users") loadUsersPanel(); + if (activeTab.value === "logs") loadLogsPanel(); } + if (activeTab.value === "briefing") loadBriefingTab(); if (activeTab.value === "apikeys") { fetchApiKeys(); loadMcpInfo(); } });