File tree Expand file tree Collapse file tree
frontend/src/features/settings/pages Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments