Skip to content

Commit

Permalink
feat: Add conditional rendering for email status in MailPage.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin committed Jun 12, 2024
1 parent 72f89c0 commit ff92463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/core/js/src/admin/components/MailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export default class MailPage<CustomAttrs extends IPageAttrs = IPageAttrs> exten
const fields = this.driverFields![this.setting('mail_driver')()];
const fieldKeys = Object.keys(fields);

items.add('status', this.status!.sending || <Alert dismissible={false}>{app.translator.trans('core.admin.email.not_sending_message')}</Alert>);
if (this.status!.sending) {
items.add('status', <Alert dismissible={false}>{app.translator.trans('core.admin.email.not_sending_message')}</Alert>);
}

items.add(
'mail_from',
Expand Down

0 comments on commit ff92463

Please sign in to comment.