From abd52f4dd2ce554ec476f86490efc5bd6a27b200 Mon Sep 17 00:00:00 2001 From: Roberto Aranda Date: Tue, 3 Sep 2024 19:15:14 +0200 Subject: [PATCH] Plugins Marketplace: Fix Manage Sites inconsistent states (#94143) --- client/my-sites/plugins/plugin-details-CTA/index.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/my-sites/plugins/plugin-details-CTA/index.jsx b/client/my-sites/plugins/plugin-details-CTA/index.jsx index 144a0b902a42f..4f2b126c9a06b 100644 --- a/client/my-sites/plugins/plugin-details-CTA/index.jsx +++ b/client/my-sites/plugins/plugin-details-CTA/index.jsx @@ -33,6 +33,7 @@ import { setBillingInterval } from 'calypso/state/marketplace/billing-interval/a import { getBillingInterval } from 'calypso/state/marketplace/billing-interval/selectors'; import { isRequestingForSites, + isRequestingForAllSites, getSiteObjectsWithPlugin, getPluginOnSite, } from 'calypso/state/plugins/installed/selectors'; @@ -495,6 +496,8 @@ function GetStartedButton( { onClick, plugin, isMarketplaceProduct, startFreeTri function ManageSitesButton( { plugin, installedOnSitesQuantity } ) { const translate = useTranslate(); const [ displayManageSitePluginsModal, setDisplayManageSitePluginsModal ] = useState( false ); + const isRequestingPlugins = useSelector( ( state ) => isRequestingForAllSites( state ) ); + const toggleDisplayManageSitePluginsModal = useCallback( () => { setDisplayManageSitePluginsModal( ( value ) => ! value ); }, [] ); @@ -525,6 +528,7 @@ function ManageSitesButton( { plugin, installedOnSitesQuantity } ) {