diff --git a/apps/web/src/pages/profile.tsx b/apps/web/src/pages/profile.tsx index ebcb144..79ba06e 100644 --- a/apps/web/src/pages/profile.tsx +++ b/apps/web/src/pages/profile.tsx @@ -51,7 +51,7 @@ const accountSettingTabs: { key: AccountSettingsTab; label: string }[] = [ { key: "clients", label: "通知与客户端" }, { key: "security", label: "安全" }, ] -const actionLabels: Record = { archive: "移入归档", trash: "移入回收站", star: "添加星标", "mark-read": "标记已读", label: "添加标签", move: "移动到", forward: "规则转发" } +const actionLabels: Record = { archive: "移入归档", trash: "移入回收站", star: "添加星标", "mark-read": "标记已读", label: "添加标签", move: "移动到", forward: "邮件转发" } export function ProfilePage() { const me = useMe() @@ -2494,7 +2494,7 @@ const sizeConditionOperators: RuleConditionOperator[] = ["gt", "gte", "lt", "lte const dateConditionOperators: RuleConditionOperator[] = ["before", "after", "on", "equals", "not-equals"] const conditionFields = Object.keys(conditionFieldLabels) as RuleConditionField[] const commonRuleFolders = ["Inbox", "Archive", "Spam", "Trash"] -const ruleActionLabels: Record = { archive: "移入归档", trash: "移入回收站", star: "添加星标", "mark-read": "标记已读", label: "添加标签", move: "移动到", forward: "规则转发" } +const ruleActionLabels: Record = { archive: "移入归档", trash: "移入回收站", star: "添加星标", "mark-read": "标记已读", label: "添加标签", move: "移动到", forward: "邮件转发" } function RulesSection({ items, mailboxes, labels, open, onOpenChange, onCreate, onDelete, pending }: { items: MailRule[]; mailboxes: Mailbox[]; labels: MailLabel[]; open: boolean; onOpenChange: (open: boolean) => void; onCreate: (payload: RuleCreatePayload) => void; onDelete: (id: string) => void; pending: boolean }) { return ( @@ -2569,7 +2569,7 @@ function RuleDialog({ open, onOpenChange, mailboxes, labels, pending, onCreate } return ( - + 新建规则 @@ -2588,7 +2588,7 @@ function RuleDialog({ open, onOpenChange, mailboxes, labels, pending, onCreate }
{conditions.map((condition, index) => ( -
+
updateAction(index, { type: value as MailRuleAction["type"], value: "", labelId: "" })}> {(Object.keys(ruleActionLabels) as MailRuleAction["type"][]).map((value) => {ruleActionLabels[value]})} updateAction(index, patch)} /> - + {action.type !== "forward" && }
))}
@@ -2674,11 +2674,71 @@ function RuleActionValue({ action, labels, onChange }: { action: MailRuleAction; ) } if (action.type === "forward") { - return