mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
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:
1 parent
1c4639b07d
commit
ce4be66bac
5 files changed
+48
-7
No files matched your search
@@ -446,6 +446,7 @@ const en: Dict = {
|
||||
"confirm.leaveUnsaved": "Leave this page?",
|
||||
"confirm.leaveUnsavedDesc": "Your unsaved changes will be lost.",
|
||||
"confirm.leave": "Leave",
|
||||
"confirm.signOut": "Sign out of the console?",
|
||||
};
|
||||
|
||||
const zh: Dict = {
|
||||
@@ -883,6 +884,7 @@ const zh: Dict = {
|
||||
"confirm.leaveUnsaved": "确定离开此页面吗?",
|
||||
"confirm.leaveUnsavedDesc": "尚未保存的修改将会丢失。",
|
||||
"confirm.leave": "离开",
|
||||
"confirm.signOut": "确定退出登录吗?",
|
||||
};
|
||||
|
||||
const messages: Record<Locale, Dict> = { en, zh };
|
||||
|
||||
Reference in new issue
Block a user