Skip to content

Commit

Permalink
Remove Sites V2 from Jetpack Cloud staging (#95314)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleacos authored Oct 11, 2024
1 parent 2a90302 commit 7ff6857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion config/jetpack-cloud-stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7ff6857

Please sign in to comment.