From 7ff68575aea032333bb42ce802bc514667a4411c Mon Sep 17 00:00:00 2001 From: Clemen Date: Fri, 11 Oct 2024 12:56:30 +0100 Subject: [PATCH] Remove Sites V2 from Jetpack Cloud staging (#95314) --- .../jetpack-cloud/sections/agency-dashboard/controller.tsx | 6 +----- config/jetpack-cloud-stage.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/client/jetpack-cloud/sections/agency-dashboard/controller.tsx b/client/jetpack-cloud/sections/agency-dashboard/controller.tsx index 9830776f8e708..3a3af6dcd318f 100644 --- a/client/jetpack-cloud/sections/agency-dashboard/controller.tsx +++ b/client/jetpack-cloud/sections/agency-dashboard/controller.tsx @@ -1,5 +1,5 @@ import { recordTracksEvent } from '@automattic/calypso-analytics'; -import config, { enable, isEnabled } from '@automattic/calypso-config'; +import config from '@automattic/calypso-config'; import page, { type Callback } from '@automattic/calypso-router'; import JetpackManageSidebar from 'calypso/jetpack-cloud/sections/sidebar-navigation/jetpack-manage'; import SitesSidebar from 'calypso/jetpack-cloud/sections/sidebar-navigation/sites'; @@ -46,10 +46,6 @@ export const agencyDashboardContext: Callback = ( context, next ) => { isSectionNameEnabled( 'jetpack-cloud-agency-sites-v2' ) && context.section.paths[ 0 ] === sitesPath(); - if ( showSitesDashboardV2 && ! isEnabled( 'jetpack/manage-sites-v2-menu' ) ) { - enable( 'jetpack/manage-sites-v2-menu' ); - } - // TODO: This insert dynamically into the body the class sites-dashboard-v2 to be able to modify some styles outside // of the SitesDashboardV2 context. This way it won't affect the current styles in any context (dev, staging, production). if ( showSitesDashboardV2 && ! document.body.classList.contains( 'sites-dashboard-v2' ) ) { diff --git a/config/jetpack-cloud-stage.json b/config/jetpack-cloud-stage.json index b711ced760776..82f77498e05e8 100644 --- a/config/jetpack-cloud-stage.json +++ b/config/jetpack-cloud-stage.json @@ -87,7 +87,7 @@ "jetpack-cloud": true, "jetpack-cloud-overview": true, "jetpack-cloud-agency-dashboard": true, - "jetpack-cloud-agency-sites-v2": true, + "jetpack-cloud-agency-sites-v2": false, "jetpack-cloud-agency-signup": true, "jetpack-cloud-auth": true, "jetpack-cloud-features-comparison": true,