From d4a75fd8c253c6557792c990c7cfb94acf912435 Mon Sep 17 00:00:00 2001 From: Sabrina Demagny Date: Fri, 10 Jan 2025 16:14:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20disable=20mailbo?= =?UTF-8?q?x=20button=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not display disable/enable mailbox button for viewers. Only owner and admin can manage mailbox and use this button. --- CHANGELOG.md | 1 + .../mail-domains/mailboxes/components/MailDomainsActions.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0544d166..d06072e4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to ### Fixed +- 🐛(frontend) fix disable mailbox button display #631 - 🐛(backend) fix dimail call despite mailbox creation failure on our side - 🧑‍💻(user) fix the User.language infinite migration #611 diff --git a/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/MailDomainsActions.tsx b/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/MailDomainsActions.tsx index a60b82406..6cf263869 100644 --- a/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/MailDomainsActions.tsx +++ b/src/frontend/apps/desk/src/features/mail-domains/mailboxes/components/MailDomainsActions.tsx @@ -47,7 +47,7 @@ export const MailDomainsActions = ({ ); }; - if (mailbox.status === 'pending' || mailbox.status === 'failed') { + if (mailbox.status === 'pending' || mailbox.status === 'failed' || mailDomain.abilities.post === false ) { return null; }