chore: Allow disabling attendee emails if SMS_ATTENDEE is a part of the workflow (#14806)
* Allow disabling confirmation emails to attendees if workflow contains SMS * Update copy
This commit is contained in:
1 parent
0391bfe887
commit
5bafd1b264
2 files changed
+5
-2
No files matched your search
@@ -2022,7 +2022,7 @@
|
||||
"invite_as": "Invite as",
|
||||
"form_updated_successfully": "Form updated successfully.",
|
||||
"disable_attendees_confirmation_emails": "Disable default confirmation emails for attendees",
|
||||
"disable_attendees_confirmation_emails_description": "At least one workflow is active on this event type that sends an email to the attendees when the event is booked.",
|
||||
"disable_attendees_confirmation_emails_description": "At least one workflow is active on this event type that sends a booking confirmation to the attendees.",
|
||||
"disable_host_confirmation_emails": "Disable default confirmation emails for host",
|
||||
"disable_host_confirmation_emails_description": "At least one workflow is active on this event type that sends an email to the host when the event is booked.",
|
||||
"add_an_override": "Add an override",
|
||||
|
||||
@@ -22,6 +22,9 @@ export function allowDisablingAttendeeConfirmationEmails(
|
||||
return !!workflows.find(
|
||||
(workflow) =>
|
||||
workflow.trigger === WorkflowTriggerEvents.NEW_EVENT &&
|
||||
!!workflow.steps.find((step) => step.action === WorkflowActions.EMAIL_ATTENDEE)
|
||||
!!workflow.steps.find(
|
||||
(step) =>
|
||||
step.action === WorkflowActions.EMAIL_ATTENDEE || step.action === WorkflowActions.SMS_ATTENDEE
|
||||
)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user