From cd7075e96f530f439848e81ec0b0369acbdd78ad Mon Sep 17 00:00:00 2001 From: duffyduck Date: Mon, 1 Jun 2026 08:23:40 +0200 Subject: [PATCH] Quicklinks auch im "Kein Postfach"-Zustand der E-Mails-Card anzeigen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Der "Stressfrei wechseln Adressen"-Link (sowie "Postfach öffnen") war nur im Normal-Zweig sichtbar, nicht aber wenn der Kunde noch gar kein Mailbox-Konto hat. cardTitle in einer gemeinsamen Variable extrahiert und in beiden Branches verwendet. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../email/ContractEmailsSection.tsx | 58 ++++++++++--------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/email/ContractEmailsSection.tsx b/frontend/src/components/email/ContractEmailsSection.tsx index 0a5b2cc8..fa9d6da6 100644 --- a/frontend/src/components/email/ContractEmailsSection.tsx +++ b/frontend/src/components/email/ContractEmailsSection.tsx @@ -268,10 +268,40 @@ export default function ContractEmailsSection({ return email.fromName || email.fromAddress; }; + // Shared Card-Titel mit Quicklinks zur Kundenakte – wird sowohl im + // Normal-Zweig als auch im "keine Mailbox vorhanden"-Zweig gezeigt, + // damit man auch ohne eingerichtetes Postfach direkt zu den + // Stressfrei-Wechseln-Adressen springen kann. + const cardTitle = ( +
+ E-Mails + + + Postfach öffnen + + + + Stressfrei wechseln Adressen + +
+ ); + // Keine Mailbox-Konten vorhanden if (!accountsLoading && accounts.length === 0) { return ( - +

Keine E-Mail-Konten vorhanden

@@ -285,31 +315,7 @@ export default function ContractEmailsSection({ return ( - E-Mails - - - Postfach öffnen - - - - Stressfrei wechseln Adressen - -
- } + title={cardTitle} actions={
{selectedFolder !== 'TRASH' && (