Skip to content

Commit 9c60c77

Browse files
fix[frontend](settings): remove broadcast-test-email button from email config (#2489)
1 parent a8c240d commit 9c60c77

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎frontend/src/features/settings/pages/EmailConfigurationPage.tsx‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,6 @@ export function EmailConfigurationPage() {
222222
return broadcast(BULK_PATHS.smtp.update, selector, smtpPayload)
223223
}
224224

225-
const onBroadcastTest = async (selector: { tenantIds: string[]; allTenants: boolean }) => {
226-
if (!form.from) {
227-
toast.error(t('emailConfig.test.fromRequired'))
228-
throw new Error('from is required')
229-
}
230-
return broadcast(BULK_PATHS.smtp.test, selector, smtpPayload)
231-
}
232-
233225
return (
234226
<div className="w-full px-6 pb-6 pt-3">
235227
<header>
@@ -353,13 +345,6 @@ export function EmailConfigurationPage() {
353345
)}
354346
{test === 'sending' ? t('emailConfig.test.sending') : t('emailConfig.test.button')}
355347
</Button>
356-
<PlatformBroadcastButton
357-
label={t('platformBroadcast.button')}
358-
title={t('platformBroadcast.action.test', { resource: t('platformBroadcast.resource.smtp') })}
359-
disabled={!form.from}
360-
excludeDefaultTenant={true}
361-
onBroadcast={onBroadcastTest}
362-
/>
363348
{form.from && (
364349
<span className="text-[11px] text-muted-foreground">{t('emailConfig.test.sentTo', { email: form.from })}</span>
365350
)}

0 commit comments

Comments
 (0)