diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json index e91f5278c..912d4f693 100644 --- a/web/public/locales/en/views/settings.json +++ b/web/public/locales/en/views/settings.json @@ -20,6 +20,7 @@ "triggers": "Triggers", "debug": "Debug", "users": "Users", + "roles": "Roles", "notifications": "Notifications", "frigateplus": "Frigate+" }, diff --git a/web/src/components/ui/sidebar.tsx b/web/src/components/ui/sidebar.tsx index d5990a5e9..5a21a6cc1 100644 --- a/web/src/components/ui/sidebar.tsx +++ b/web/src/components/ui/sidebar.tsx @@ -737,7 +737,7 @@ const SidebarMenuSubButton = React.forwardRef< data-size={size} data-active={isActive} className={cn( - "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", + "flex min-h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", size === "sm" && "text-xs", size === "md" && "text-sm", diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index c47e51d0e..aebbe1692 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -84,11 +84,11 @@ type SettingsType = (typeof allSettingsViews)[number]; const settingsGroups = [ { - label: "General", + label: "general", items: [{ key: "ui", component: UiSettingsView }], }, { - label: "Cameras", + label: "cameras", items: [ { key: "cameras", component: CameraSettingsView }, { key: "masksAndZones", component: MasksAndZonesView }, @@ -96,25 +96,25 @@ const settingsGroups = [ ], }, { - label: "Enrichments", + label: "enrichments", items: [{ key: "enrichments", component: EnrichmentsSettingsView }], }, { - label: "Users", + label: "users", items: [ { key: "users", component: UsersView }, { key: "roles", component: RolesView }, ], }, { - label: "Notifications", + label: "notifications", items: [ { key: "notifications", component: NotificationView }, { key: "triggers", component: TriggerView }, ], }, { - label: "Frigate+", + label: "frigateplus", items: [{ key: "frigateplus", component: FrigatePlusSettingsView }], }, ]; @@ -293,7 +293,7 @@ export default function Settings() {

- {t("settings", { ns: "common" })} + {t("menu.settings", { ns: "common" })}

@@ -308,7 +308,9 @@ export default function Settings() {
{filteredItems.length > 1 && (

- {group.label} +
+ {t("menu." + group.label)} +

)} {filteredItems.map((item) => ( @@ -422,7 +424,7 @@ export default function Settings() {
- {t("settings", { ns: "common" })} + {t("menu.settings", { ns: "common" })} {[ "debug", @@ -498,7 +500,9 @@ export default function Settings() { : "text-sidebar-foreground/80", )} > - {group.label} +
+ {t("menu." + group.label)} +
{filteredItems.map((item) => (