fix: remove duplicate verified email entry
Docker Release / Check web and api (push) Waiting to run
Docker Release / Resolve release tag (push) Blocked by required conditions
Docker Release / Build and publish all-in-one (push) Blocked by required conditions
Docker Release / Build and publish api (push) Blocked by required conditions
Docker Release / Build and publish web (push) Blocked by required conditions
Docker Release / Build and publish dovecot (push) Blocked by required conditions
Docker Release / Build and publish postfix (push) Blocked by required conditions
Docker Release / Build and publish rspamd (push) Blocked by required conditions
Docker Release / Create GitHub release (push) Blocked by required conditions

This commit is contained in:
zxyszx
2026-08-10 21:16:34 +08:00
parent d2cfad3cc4
commit 9cb3f13b02
3 changed files with 13 additions and 14 deletions
+9 -13
View File
@@ -1361,9 +1361,8 @@ function MailboxManagement({
</section>
<section id="mailbox-forwarding-section" className="rounded-lg border bg-card px-6 py-5">
<div className="mb-5 flex items-center justify-between gap-4">
<div className="mb-5 flex items-center gap-4">
<h2 className="text-lg font-semibold leading-7"></h2>
<Button type="button" variant="outline" size="sm" onClick={() => setVerifiedDialogOpen(true)}></Button>
</div>
<div className="rounded-xl bg-muted/20 px-5 py-5">
<div className="mb-3 text-sm font-medium"></div>
@@ -1373,17 +1372,14 @@ function MailboxManagement({
<Button type="button" className="h-[37px]" disabled={forwardingBusy} onClick={() => saveAccountForwarding.mutate(accountForwardTargets)}>{saveAccountForwarding.isPending ? "保存中" : "保存"}</Button>
</div>
</div>
{verifiedEmailItems.length > 0 && (
<Button type="button" variant="outline" className="mt-5 h-auto w-full justify-start gap-3 px-4 py-3 text-left font-normal shadow-none" onClick={() => setVerifiedDialogOpen(true)}>
<span className="flex size-9 shrink-0 items-center justify-center rounded-md bg-emerald-50 text-emerald-700"><MailCheck className="h-4 w-4" /></span>
<span className="min-w-0 flex-1">
<span className="block text-sm font-medium"></span>
<span className="block truncate text-sm text-muted-foreground"> {completedVerifiedEmailItems.length} {pendingVerifiedEmailItems.length > 0 ? `,待验证 ${pendingVerifiedEmailItems.length}` : ""}</span>
</span>
<ChevronDown className="h-4 w-4 shrink-0 -rotate-90 text-muted-foreground" />
</Button>
)}
{verifiedEmails.length === 0 && <p className="mt-4 text-sm text-muted-foreground"></p>}
<Button type="button" variant="outline" className="mt-5 h-auto w-full justify-start gap-3 px-4 py-3 text-left font-normal shadow-none" onClick={() => setVerifiedDialogOpen(true)}>
<span className="flex size-9 shrink-0 items-center justify-center rounded-md bg-emerald-50 text-emerald-700"><MailCheck className="h-4 w-4" /></span>
<span className="min-w-0 flex-1">
<span className="block text-sm font-medium"></span>
<span className="block truncate text-sm text-muted-foreground"> {completedVerifiedEmailItems.length} {pendingVerifiedEmailItems.length > 0 ? `,待验证 ${pendingVerifiedEmailItems.length}` : ""}</span>
</span>
<ChevronDown className="h-4 w-4 shrink-0 -rotate-90 text-muted-foreground" />
</Button>
<p className="mt-3 text-sm text-muted-foreground"></p>
</section>