diff --git a/packages/client/src/components/layout/AppSidebar.vue b/packages/client/src/components/layout/AppSidebar.vue index 06f03c8..47ee133 100644 --- a/packages/client/src/components/layout/AppSidebar.vue +++ b/packages/client/src/components/layout/AppSidebar.vue @@ -22,6 +22,12 @@ const logoPath = '/logo.png'; const collapsedGroups = reactive>({}); +type SidebarGroupKey = "Conversation" | "Agent" | "Monitoring" | "System"; + +function groupLabel(key: SidebarGroupKey) { + return t(`sidebar.group${key}${appStore.sidebarCollapsed ? "Short" : ""}`); +} + function toggleGroup(key: string) { collapsedGroups[key] = !collapsedGroups[key]; } @@ -79,12 +85,12 @@ function openChangelog() {