feat: ability to provide a reason for event rejection (from email) and some changes (#15098)
* feat: ability to provide reason for event rejection from email * update --------- Co-authored-by: Somay Chauhan <[email protected]>
This commit is contained in:
1 parent
baaa1fa71e
commit
3ff3a97c78
5 files changed
+123
-50
No files matched your search
@@ -9,6 +9,8 @@ export const OrganizerRequestEmail = (props: React.ComponentProps<typeof Organiz
|
||||
const token = symmetricEncrypt(JSON.stringify(seedData), process.env.CALENDSO_ENCRYPTION_KEY || "");
|
||||
//TODO: We should switch to using org domain if available
|
||||
const actionHref = `${WEBAPP_URL}/api/link/?token=${encodeURIComponent(token)}`;
|
||||
const rejectLink = new URL(`${props.calEvent.bookerUrl ?? WEBAPP_URL}/booking/${props.calEvent.uid}`);
|
||||
rejectLink.searchParams.append("reject", "true");
|
||||
return (
|
||||
<OrganizerScheduledEmail
|
||||
title={
|
||||
@@ -29,7 +31,7 @@ export const OrganizerRequestEmail = (props: React.ComponentProps<typeof Organiz
|
||||
<Separator />
|
||||
<CallToAction
|
||||
label={props.calEvent.organizer.language.translate("reject")}
|
||||
href={`${actionHref}&action=reject`}
|
||||
href={rejectLink.toString()}
|
||||
startIconName="rejectIcon"
|
||||
secondary
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user