Merge pull request #14311 from overleaf/mf-resend-surrender-email

[web] Add an option to resend managed users invite in managed users setting

GitOrigin-RevId: 2734ef3be31f77c309caec96e97411c9d48a8160
This commit is contained in:
M Fahru
2023-08-23 08:05:50 +00:00
committed by Copybot
parent 808fd2c0f9
commit 1e4028d05e
13 changed files with 366 additions and 31 deletions
@@ -443,14 +443,22 @@ templates.surrenderAccountForManagedUsers = ctaTemplate({
const toGroupName = opts.groupName ? ` to ${opts.groupName}` : ''
return `You’ve been invited by ${admin} to transfer management of your ${settings.appName} account${toGroupName}`
return `${
opts.reminder ? 'Reminder: ' : ''
}You’ve been invited by ${admin} to transfer management of your ${
settings.appName
} account${toGroupName}`
},
title(opts) {
const admin = _.escape(_formatUserNameAndEmail(opts.admin, 'an admin'))
const toGroupName = opts.groupName ? ` to ${opts.groupName}` : ''
return `You’ve been invited by ${admin} to transfer management of your ${settings.appName} account${toGroupName}`
return `${
opts.reminder ? 'Reminder: ' : ''
}You’ve been invited by ${admin} to transfer management of your ${
settings.appName
} account${toGroupName}`
},
message(opts, isPlainText) {
const admin = _.escape(_formatUserNameAndEmail(opts.admin, 'an admin'))