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 (
- {t('you_can_only_add_n_people_to_edit_a_project', { - count: features.collaborators, - })} -
- } - action={ - user.allowedFreeTrial ? ( -+ {t( + 'upgrade_to_add_more_editors_and_access_collaboration_features' + )} +
+ } + isActionBelowContent + action={ + user.allowedFreeTrial ? ( ++ {t('you_can_only_add_n_people_to_edit_a_project', { + count: features.collaborators, + })} +
+ } + action={ + user.allowedFreeTrial ? ( +