mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
feat(console): confirm leaving unsaved page work
Guard route changes when an editor or changed order draft is open. Cancel superseded questions and restore the shown history entry when repeated Back or Forward navigation is refused; only completed navigation resets page work.
This commit is contained in:
1 parent
535bfa98ce
commit
1c4639b07d
7 files changed
+104
-6
No files matched your search
@@ -443,6 +443,9 @@ const en: Dict = {
|
||||
"confirm.disableWebhook": "Disable this group's webhook endpoint?",
|
||||
"confirm.disableWebhookDetail": "The secret is deleted; senders still using it will be rejected.",
|
||||
"confirm.removeForgeSource": 'Remove host "{name}"?',
|
||||
"confirm.leaveUnsaved": "Leave this page?",
|
||||
"confirm.leaveUnsavedDesc": "Your unsaved changes will be lost.",
|
||||
"confirm.leave": "Leave",
|
||||
};
|
||||
|
||||
const zh: Dict = {
|
||||
@@ -877,6 +880,9 @@ const zh: Dict = {
|
||||
"confirm.disableWebhook": "确定停用该分组的 webhook 入口吗?",
|
||||
"confirm.disableWebhookDetail": "secret 将被删除,仍在使用它的发送方会被拒绝。",
|
||||
"confirm.removeForgeSource": "确定删除来源主机“{name}”吗?",
|
||||
"confirm.leaveUnsaved": "确定离开此页面吗?",
|
||||
"confirm.leaveUnsavedDesc": "尚未保存的修改将会丢失。",
|
||||
"confirm.leave": "离开",
|
||||
};
|
||||
|
||||
const messages: Record<Locale, Dict> = { en, zh };
|
||||
|
||||
Reference in new issue
Block a user