fix: give reason to reassign - allow team members to reassign even if busy (#17328)
Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
17 files changed
+134
-67
No files matched your search
@@ -27,7 +27,7 @@ export const BaseScheduledEmail = (
|
||||
locale: string;
|
||||
timeFormat: TimeFormat | undefined;
|
||||
isOrganizer?: boolean;
|
||||
reassignedTo?: { name: string | null; email: string };
|
||||
reassigned?: { name: string | null; email: string; reason?: string; byUser?: string };
|
||||
} & Partial<React.ComponentProps<typeof BaseEmailHtml>>
|
||||
) => {
|
||||
const { t, timeZone, locale, timeFormat: timeFormat_ } = props;
|
||||
@@ -81,14 +81,24 @@ export const BaseScheduledEmail = (
|
||||
withSpacer
|
||||
/>
|
||||
)}
|
||||
{props.reassignedTo && (
|
||||
<Info
|
||||
label={t("reassigned_to")}
|
||||
description={
|
||||
<PersonInfo name={props.reassignedTo.name || undefined} email={props.reassignedTo.email} />
|
||||
}
|
||||
withSpacer
|
||||
/>
|
||||
{props.reassigned && !props.reassigned.byUser && (
|
||||
<>
|
||||
<Info
|
||||
label={t("reassigned_to")}
|
||||
description={
|
||||
<PersonInfo name={props.reassigned.name || undefined} email={props.reassigned.email} />
|
||||
}
|
||||
withSpacer
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{props.reassigned && props.reassigned.byUser && (
|
||||
<>
|
||||
<Info label={t("reassigned_by")} description={props.reassigned.byUser} withSpacer />
|
||||
{props.reassigned?.reason && (
|
||||
<Info label={t("reason")} description={props.reassigned.reason} withSpacer />
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
<Info label={t("what")} description={props.calEvent.title} withSpacer />
|
||||
<WhenInfo timeFormat={timeFormat} calEvent={props.calEvent} t={t} timeZone={timeZone} locale={locale} />
|
||||
|
||||
@@ -9,7 +9,7 @@ export const OrganizerReassignedEmail = (props: React.ComponentProps<typeof Orga
|
||||
subject="event_reassigned_subject"
|
||||
subtitle={<>{t("event_reassigned_subtitle")}</>}
|
||||
callToAction={null}
|
||||
reassignedTo={props.reassignedTo}
|
||||
reassigned={props.reassigned}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -10,7 +10,7 @@ export const OrganizerScheduledEmail = (
|
||||
newSeat?: boolean;
|
||||
attendeeCancelled?: boolean;
|
||||
teamMember?: Person;
|
||||
reassignedTo?: { email: string; name: string | null };
|
||||
reassigned?: { name: string | null; email: string; reason?: string; byUser?: string };
|
||||
} & Partial<React.ComponentProps<typeof BaseScheduledEmail>>
|
||||
) => {
|
||||
let subject;
|
||||
@@ -60,7 +60,7 @@ export const OrganizerScheduledEmail = (
|
||||
</>
|
||||
)
|
||||
}
|
||||
reassignedTo={props.reassignedTo}
|
||||
reassigned={props.reassigned}
|
||||
{...props}
|
||||
attendee={attendee}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user