diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 03a543c77a..80ae1b7bda 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -51,6 +51,7 @@ "add_email_to_claim_features": "", "add_files": "", "add_more_collaborators": "", + "add_more_editors": "", "add_more_managers": "", "add_more_members": "", "add_new_email": "", @@ -1606,6 +1607,7 @@ "upgrade_for_12x_more_compile_time": "", "upgrade_now": "", "upgrade_to_add_more_editors": "", + "upgrade_to_add_more_editors_and_access_collaboration_features": "", "upgrade_to_get_feature": "", "upgrade_to_track_changes": "", "upload": "", diff --git a/services/web/frontend/js/features/share-project-modal/components/restricted-link-sharing/collaborators-limit-upgrade.tsx b/services/web/frontend/js/features/share-project-modal/components/restricted-link-sharing/collaborators-limit-upgrade.tsx index a088fe3ce2..53812066dc 100644 --- a/services/web/frontend/js/features/share-project-modal/components/restricted-link-sharing/collaborators-limit-upgrade.tsx +++ b/services/web/frontend/js/features/share-project-modal/components/restricted-link-sharing/collaborators-limit-upgrade.tsx @@ -5,47 +5,92 @@ import { upgradePlan } from '@/main/account-upgrade' import { useProjectContext } from '@/shared/context/project-context' import { useUserContext } from '@/shared/context/user-context' import StartFreeTrialButton from '@/shared/components/start-free-trial-button' +import getMeta from '@/utils/meta' export default function CollaboratorsLimitUpgrade() { const { t } = useTranslation() const { features } = useProjectContext() const user = useUserContext() + const linkSharingEnforcement = getMeta('ol-linkSharingEnforcement') return (
- } - title={t('upgrade_to_add_more_editors')} - content={ -

- {t('you_can_only_add_n_people_to_edit_a_project', { - count: features.collaborators, - })} -

- } - action={ - user.allowedFreeTrial ? ( - - {t('upgrade')} - - ) : ( - - ) - } - /> + {linkSharingEnforcement ? ( +
) } diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 3bd2b5bfbf..77ea475e0d 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -69,6 +69,7 @@ "add_email_to_claim_features": "Add an institutional email address to claim your features.", "add_files": "Add Files", "add_more_collaborators": "Add more collaborators", + "add_more_editors": "Add more editors", "add_more_managers": "Add more managers", "add_more_members": "Add more members", "add_new_email": "Add new email", @@ -2243,6 +2244,7 @@ "upgrade_for_12x_more_compile_time": "Upgrade to get 12x more compile time", "upgrade_now": "Upgrade Now", "upgrade_to_add_more_editors": "Upgrade to add more editors to your project", + "upgrade_to_add_more_editors_and_access_collaboration_features": "Upgrade to add more editors and access collaboration features like track changes and full project history.", "upgrade_to_get_feature": "Upgrade to get __feature__, plus:", "upgrade_to_track_changes": "Upgrade to track changes", "upload": "Upload", diff --git a/services/web/public/img/share-modal/add-more-editors.svg b/services/web/public/img/share-modal/add-more-editors.svg new file mode 100644 index 0000000000..61ee16d570 --- /dev/null +++ b/services/web/public/img/share-modal/add-more-editors.svg @@ -0,0 +1,9 @@ + + + + + + + + +