From be8b7dfa1e137eac04bad36526dcba2f147a6511 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Thu, 10 Aug 2023 11:33:11 -0700 Subject: [PATCH] Add link to "change project owner" wiki page in the email template when inviting an existing user to join managed users. GitOrigin-RevId: a1079a6a54f0c354bef368fe6e9257be4ce0b07e --- services/web/app/src/Features/Email/EmailBuilder.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/services/web/app/src/Features/Email/EmailBuilder.js b/services/web/app/src/Features/Email/EmailBuilder.js index 433936b875..dbee3c7005 100644 --- a/services/web/app/src/Features/Email/EmailBuilder.js +++ b/services/web/app/src/Features/Email/EmailBuilder.js @@ -376,13 +376,19 @@ templates.verifyEmailToJoinManagedUsers = ctaTemplate({ `By joining this group, you'll have access to ${settings.appName} premium features such as additional collaborators, greater maximum compile time, and real-time track changes.`, ] }, - secondaryMessage(opts) { + secondaryMessage(opts, isPlainText) { + const changeProjectOwnerLink = EmailMessageHelper.displayLink( + 'change project owner', + `${settings.siteUrl}/learn/how-to/How_to_Transfer_Project_Ownership`, + isPlainText + ) + return [ `User accounts in this group are managed by ${_.escape( _formatUserNameAndEmail(opts.admin, 'an admin') )}`, `If you accept, you’ll transfer the management of your ${settings.appName} account to the owner of the group subscription, who will then have admin rights over your account and control over your stuff.`, - `If you have personal projects in your ${settings.appName} account that you want to keep separate, that’s not a problem. You can set up another account under a personal email address and change the ownership of your personal projects to the new account. Find out how to change project owner.`, + `If you have personal projects in your ${settings.appName} account that you want to keep separate, that’s not a problem. You can set up another account under a personal email address and change the ownership of your personal projects to the new account. Find out how to ${changeProjectOwnerLink}.`, ] }, ctaURL(opts) {