disable standard confirmation emails if workflow exists (#8747)
* add switches to advanced even type settings * only show switches when workflow is enabled * check in event type update handler if user is allowed to disable standard emails * don't send emails if disabled * make sure emails can't be disabled if no workflow exist * send workflow emails to all attendees * code clean up * add translations * always send to all attendees when scheduling reminders * change text --------- Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
1 parent
6fc9e9315d
commit
36d8554fd5
12 files changed
+241
-55
No files matched your search
@@ -41,6 +41,16 @@ export const EventTypeMetaDataSchema = z
|
||||
apps: z.object(appDataSchemas).partial().optional(),
|
||||
additionalNotesRequired: z.boolean().optional(),
|
||||
disableSuccessPage: z.boolean().optional(),
|
||||
disableStandardEmails: z
|
||||
.object({
|
||||
confirmation: z
|
||||
.object({
|
||||
host: z.boolean().optional(),
|
||||
attendee: z.boolean().optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
managedEventConfig: z
|
||||
.object({
|
||||
unlockedFields: z.custom<{ [k in keyof Omit<Prisma.EventTypeSelect, "id">]: true }>().optional(),
|
||||
|
||||
Reference in new issue
Block a user