From 9727cfb6b76af5f2a81a0dcb3a0a6c94e42d823c Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Wed, 23 Aug 2023 12:21:20 +0200 Subject: [PATCH] Merge pull request #14370 from overleaf/msm-managed-user-plan-page [web] Add managed users to plans page GitOrigin-RevId: 878f5b6d8531542dc6d4df0cb6bab3f2fe90fbdd --- .../src/Features/Subscription/plansFeatures.js | 16 ++++++++++++++++ services/web/locales/en.json | 2 ++ 2 files changed, 18 insertions(+) diff --git a/services/web/app/src/Features/Subscription/plansFeatures.js b/services/web/app/src/Features/Subscription/plansFeatures.js index e9cc82ff78..37695d51ae 100644 --- a/services/web/app/src/Features/Subscription/plansFeatures.js +++ b/services/web/app/src/Features/Subscription/plansFeatures.js @@ -1,3 +1,5 @@ +const Settings = require('@overleaf/settings') + const individualPlans = [ { divider: false, @@ -605,6 +607,20 @@ const studentPlans = [ }, ] +if (Settings.managedUsers?.enabled) { + const row = 2 + groupPlans[1].items.splice(row, 0, { + feature: 'managed_users_accounts', + info: 'managed_users_accounts_plan_info', + value: 'bool', + plans: { + group_standard: false, + group_professional: true, + organization: true, + }, + }) +} + module.exports = { individual: individualPlans, group: groupPlans, diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 60898d8aec..d6424f874f 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -973,6 +973,8 @@ "managed": "Managed", "managed_user_invite_has_been_sent_to_email": "Managed User invite has been sent to <0>__email__", "managed_users": "Managed Users", + "managed_users_accounts": "Managed user accounts", + "managed_users_accounts_plan_info": "Managed Users gives you more control over your group’s use of Overleaf. It ensures tighter management of user access and deletion and allows you to keep control of projects when someone leaves the group.", "managed_users_explanation": "Managed Users ensures you stay in control of your organization’s projects and who owns them. <0>Read more about Managed Users.", "managed_users_terms": "To use the Managed Users feature, you must agree to the latest version of our customer terms at <0>__link__ on behalf of your organization by selecting \"I agree\" below. These terms will then apply to your organization’s use of Overleaf in place of any previously agreed Overleaf terms, except where we have a signed agreement in place with you, in which case that signed agreement will continue to govern. Please keep a copy for your records", "managers_cannot_remove_admin": "Admins cannot be removed",