feat(console): confirm sign-out from desktop and mobile

Expose sign-out in the mobile topbar when the sidebar is hidden. Both entry points use the in-app confirmation before navigating to the server logout endpoint.
This commit is contained in:
翅膀 committed 2026-10-17 12:21:54 +08:00
1 parent 1c4639b07d
commit ce4be66bac
5 files changed
+48 -7

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export interface ConfirmOptions {
/** Label of the destructive button (defaults to "Delete"). */
confirmText?: string;
/** What the action does, shown as the dialog icon (defaults to "delete"). */
kind?: "delete" | "leave";
kind?: "delete" | "leave" | "signOut";
}
interface ConfirmRequest extends ConfirmOptions {