Skip to content

Commit 8209259

Browse files
fix(mobile): add missing E2E security tab in mobile settings
The mobile settings modal was missing the Security tab that exists on desktop, preventing users from setting their E2E encryption password.
1 parent 4e45059 commit 8209259

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

packages/web/src/components/MobileLayout.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { CronSidebar } from "./CronSidebar";
1010
import { CronDetail } from "./CronDetail";
1111
import { ModelSelect } from "./ModelSelect";
1212
import { ConnectionSettings } from "./ConnectionSettings";
13+
import { E2ESettings } from "./E2ESettings";
1314
import { dlog } from "../debug-log";
1415

1516
type MobileScreen =
@@ -371,7 +372,7 @@ function MobileSettingsModal({
371372
onClose: () => void;
372373
handleDefaultModelChange: (modelId: string) => Promise<void>;
373374
}) {
374-
const [tab, setTab] = useState<"general" | "connection">("general");
375+
const [tab, setTab] = useState<"general" | "connection" | "security">("general");
375376

376377
return (
377378
<div
@@ -416,6 +417,17 @@ function MobileSettingsModal({
416417
>
417418
Connection
418419
</button>
420+
<button
421+
className="pb-2 text-caption font-bold transition-colors"
422+
style={{
423+
color: tab === "security" ? "var(--text-primary)" : "var(--text-muted)",
424+
borderBottom: tab === "security" ? "2px solid var(--bg-active)" : "2px solid transparent",
425+
marginBottom: "-1px",
426+
}}
427+
onClick={() => setTab("security")}
428+
>
429+
Security
430+
</button>
419431
</div>
420432

421433
{/* Tab content — scrollable */}
@@ -451,6 +463,10 @@ function MobileSettingsModal({
451463
{tab === "connection" && (
452464
<ConnectionSettings />
453465
)}
466+
467+
{tab === "security" && (
468+
<E2ESettings />
469+
)}
454470
</div>
455471

456472
<button

0 commit comments

Comments
 (0)