diff --git a/VERSION b/VERSION index c813fe1..3c43790 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.5 +1.2.6 diff --git a/apps/web/src/lib/language.tsx b/apps/web/src/lib/language.tsx index 0e86dde..43fa781 100644 --- a/apps/web/src/lib/language.tsx +++ b/apps/web/src/lib/language.tsx @@ -181,7 +181,7 @@ const exactTranslations: Record = { "还没有可用邮箱": { "zh-TW": "還沒有可用信箱", en: "No mailbox available" }, "请在个人中心申请邮箱,或联系管理员为当前账号分配邮箱。": { "zh-TW": "請在個人中心申請信箱,或聯絡管理員為目前帳號分配信箱。", en: "Apply for a mailbox in Profile, or contact an administrator to assign one to this account." }, "前往个人中心": { "zh-TW": "前往個人中心", en: "Go to profile" }, - "请前往邮箱管理,为当前账号创建或分配邮箱。": { "zh-TW": "請前往信箱管理,為目前帳號建立或分配信箱。", en: "Open mailbox management to create or assign a mailbox to this account." }, + "请前往邮箱管理,创建、申请或联系管理员分配邮箱。": { "zh-TW": "請前往信箱管理,建立、申請或聯絡管理員分配信箱。", en: "Open mailbox management to create, request, or ask an administrator to assign a mailbox." }, "前往邮箱管理": { "zh-TW": "前往信箱管理", en: "Go to mailbox management" }, "无邮箱前台权限": { "zh-TW": "無信箱前台權限", en: "No mailbox access" }, "当前账号未开启邮箱前台访问权限。": { "zh-TW": "目前帳號未開啟信箱前台存取權限。", en: "Mailbox access is not enabled for this account." }, diff --git a/apps/web/src/pages/mail.tsx b/apps/web/src/pages/mail.tsx index 0383c81..c3e8f16 100644 --- a/apps/web/src/pages/mail.tsx +++ b/apps/web/src/pages/mail.tsx @@ -1469,7 +1469,7 @@ export function MailPage() { ) : !canReadMail ? ( ) : !mailboxList.isLoading && !hasMailboxes && mailView !== "unknown" ? ( - navigate("/admin?section=mailboxes")} /> + navigate(canManageMailboxes ? "/admin?section=mailboxes" : "/profile?tab=mailboxes")} /> ) : mailView === "scheduled" && canScheduleMail ? ( void; onManageMailboxes: () => void }) { +function NoMailboxState({ onManageMailboxes }: { onManageMailboxes: () => void }) { return (
@@ -2070,10 +2070,9 @@ function NoMailboxState({ canManageMailboxes, onOpenSettings, onManageMailboxes
还没有可用邮箱
-
{canManageMailboxes ? "请前往邮箱管理,为当前账号创建或分配邮箱。" : "请在个人中心申请邮箱,或联系管理员为当前账号分配邮箱。"}
-