{t("settings.sidebar.title")}
@@ -1169,12 +1343,15 @@ const SETTINGS_NAV_ITEMS: Array<{ key: SettingsSectionKey; icon: LucideIcon; fal
{ key: "appearance", icon: Palette, fallback: "Appearance" },
{ key: "models", icon: SlidersHorizontal, fallback: "Models" },
{ key: "image", icon: ImageIcon, fallback: "Image" },
- { key: "web", icon: Globe2, fallback: "Web" },
- { key: "apps", icon: Blocks, fallback: "Apps" },
- { key: "runtime", icon: Server, fallback: "Runtime" },
- { key: "advanced", icon: ShieldCheck, fallback: "Advanced" },
+ { key: "browser", icon: Globe2, fallback: "Web" },
+ { key: "runtime", icon: Server, fallback: "System" },
+ { key: "advanced", icon: ShieldCheck, fallback: "Security" },
];
+function visibleWebuiDefaultAccessMode(mode: string | null | undefined): WebuiDefaultAccessMode {
+ return mode === "full" ? "full" : "default";
+}
+
function titleForSection(section: SettingsSectionKey): string {
return SETTINGS_NAV_ITEMS.find((item) => item.key === section)?.fallback ?? "Settings";
}
@@ -1184,15 +1361,22 @@ function SettingsSidebar({
onSelectSection,
onBackToChat,
onLogout,
+ hostChromeInset,
}: {
activeSection: SettingsSectionKey;
onSelectSection: (section: SettingsSectionKey) => void;
onBackToChat: () => void;
onLogout?: () => void;
+ hostChromeInset?: boolean;
}) {
const { t } = useTranslation();
return (
-