From 0eff26568207dca58e364ea412f28bc39dce3e8e Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Mon, 23 May 2022 11:54:24 +0100 Subject: [PATCH] Meet/Zoom Email Clarification (#2828) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add clarificaiton to email * Update apps/web/lib/emails/templates/organizer-scheduled-email.ts * Add to attendee scheduled email Co-authored-by: Omar López Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../templates/attendee-scheduled-email.ts | 6 ++++++ .../templates/organizer-scheduled-email.ts | 21 ++++++++++++------- apps/web/public/static/locales/en/common.json | 3 ++- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/apps/web/lib/emails/templates/attendee-scheduled-email.ts b/apps/web/lib/emails/templates/attendee-scheduled-email.ts index cedbcab8..91f4afc0 100644 --- a/apps/web/lib/emails/templates/attendee-scheduled-email.ts +++ b/apps/web/lib/emails/templates/attendee-scheduled-email.ts @@ -428,6 +428,12 @@ ${getRichDescription(this.calEvent)}

${ providerName || this.calEvent.location }

+

${ + (providerName === "Zoom" || providerName === "Google") && + ` + ${this.calEvent.organizer.language.translate("meeting_url_provided_after_confirmed")} + ` + }

`; } diff --git a/apps/web/lib/emails/templates/organizer-scheduled-email.ts b/apps/web/lib/emails/templates/organizer-scheduled-email.ts index 39fb8da2..75c0254a 100644 --- a/apps/web/lib/emails/templates/organizer-scheduled-email.ts +++ b/apps/web/lib/emails/templates/organizer-scheduled-email.ts @@ -356,17 +356,17 @@ ${getRichDescription(this.calEvent)} const meetingId = this.calEvent.videoCallData.id; const meetingPassword = this.calEvent.videoCallData.password; const meetingUrl = this.calEvent.videoCallData.url; - return `

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

-

${providerName} ${ - meetingUrl && - `` - }

+

${providerName} + ${ + meetingUrl && + `` + }

${ meetingId && `
${this.calEvent.organizer.language.translate( @@ -393,7 +393,6 @@ ${getRichDescription(this.calEvent)} if (this.calEvent.additionInformation?.hangoutLink) { const hangoutLink: string = this.calEvent.additionInformation.hangoutLink; - return `

@@ -418,6 +417,12 @@ ${getRichDescription(this.calEvent)}

${ providerName || this.calEvent.location }

+

${ + (providerName === "Zoom" || providerName === "Google") && + ` + ${this.calEvent.organizer.language.translate("meeting_url_provided_after_confirmed")} + ` + }

`; } diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 0610ad07..65a17c06 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -832,5 +832,6 @@ "or_lowercase": "or", "nevermind": "Nevermind", "go_to": "Go to: ", - "zapier_invite_link": "Zapier Invite Link" + "zapier_invite_link": "Zapier Invite Link", + "meeting_url_provided_after_confirmed":"A Meeting URL will be created once the event is confirmed." }