From d298a258e02c3cb56ad9b31d56b94e9edcc5b21b Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 20 Jul 2023 11:14:12 +0100 Subject: [PATCH] Merge pull request #13932 from overleaf/bg-managed-users-hide-reactivate-button hide button to reactivate subscription for managed users GitOrigin-RevId: 3632c5ffdee68eb5e0aed1479f3b7ffb45e3aa4a --- .../components/dashboard/reactivate-subscription.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/web/frontend/js/features/subscription/components/dashboard/reactivate-subscription.tsx b/services/web/frontend/js/features/subscription/components/dashboard/reactivate-subscription.tsx index 60f745ea41..faf11245c4 100644 --- a/services/web/frontend/js/features/subscription/components/dashboard/reactivate-subscription.tsx +++ b/services/web/frontend/js/features/subscription/components/dashboard/reactivate-subscription.tsx @@ -3,6 +3,7 @@ import { postJSON } from '../../../../infrastructure/fetch-json' import { reactivateSubscriptionUrl } from '../../data/subscription-url' import useAsync from '../../../../shared/hooks/use-async' import { useLocation } from '../../../../shared/hooks/use-location' +import getMeta from '../../../../utils/meta' function ReactivateSubscription() { const { t } = useTranslation() @@ -17,6 +18,11 @@ function ReactivateSubscription() { location.reload() } + // Don't show the button to reactivate the subscription for managed users + if (getMeta('ol-cannot-reactivate-subscription')) { + return null + } + return (