From 509e0b0a39fc34b3e829e474cfacc4e32438f29d Mon Sep 17 00:00:00 2001 From: Arnab Tarwani Date: Sat, 29 Jan 2022 19:22:02 +0000 Subject: [PATCH] Bugfix/minor email fix (#1644) * added new line fix, minor email validation * fix: reorder controls hidden on more than 1 events #1452 Signed-off-by: arnabtarwani Co-authored-by: Alex van Andel --- .../templates/attendee-scheduled-email.ts | 4 ++- .../templates/organizer-scheduled-email.ts | 4 ++- pages/event-types/index.tsx | 25 +++++++++++-------- pages/settings/profile.tsx | 2 +- 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/lib/emails/templates/attendee-scheduled-email.ts b/lib/emails/templates/attendee-scheduled-email.ts index 832dfc1b..2ce4a0a0 100644 --- a/lib/emails/templates/attendee-scheduled-email.ts +++ b/lib/emails/templates/attendee-scheduled-email.ts @@ -289,7 +289,9 @@ ${getRichDescription(this.calEvent)}

${this.calEvent.attendees[0].language.translate("additional_notes")}

-

${this.calEvent.description}

+

${ + this.calEvent.description + }

`; } diff --git a/lib/emails/templates/organizer-scheduled-email.ts b/lib/emails/templates/organizer-scheduled-email.ts index 693f58bc..259bc89f 100644 --- a/lib/emails/templates/organizer-scheduled-email.ts +++ b/lib/emails/templates/organizer-scheduled-email.ts @@ -290,7 +290,9 @@ ${getRichDescription(this.calEvent)}

${this.calEvent.organizer.language.translate("additional_notes")}

-

${this.calEvent.description}

+

${ + this.calEvent.description + }

`; } diff --git a/pages/event-types/index.tsx b/pages/event-types/index.tsx index b03f06eb..def7cf29 100644 --- a/pages/event-types/index.tsx +++ b/pages/event-types/index.tsx @@ -108,16 +108,21 @@ const EventTypeList = ({ readOnly, types, profile }: EventTypeListProps): JSX.El type.$disabled && "pointer-events-none" )}>
- - + {sortableTypes.length > 1 && ( + <> + + + + + )} & { localeProp: str