From cbb2525a8ea518aa14b19c6258f07ed1b20433e0 Mon Sep 17 00:00:00 2001 From: Matt Gawarecki Date: Wed, 10 Jun 2020 09:24:02 -0500 Subject: [PATCH] Jetpack Cloud: Move Activity Log menu item under Jetpack section (#43109) --- client/my-sites/sidebar/index.jsx | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/client/my-sites/sidebar/index.jsx b/client/my-sites/sidebar/index.jsx index 34add1f94dee8..6e03efc4f7412 100644 --- a/client/my-sites/sidebar/index.jsx +++ b/client/my-sites/sidebar/index.jsx @@ -287,6 +287,12 @@ export class MySitesSidebar extends Component { return null; } + // When the new Jetpack section is active, + // Activity Log goes there instead of here + if ( isEnabled( 'jetpack/features-section' ) ) { + return null; + } + let activityLink = '/activity-log' + siteSuffix, activityLabel = translate( 'Activity' ); @@ -373,7 +379,12 @@ export class MySitesSidebar extends Component { } jetpack() { - const { isJetpackSectionOpen, site, translate } = this.props; + const { isJetpack, isJetpackSectionOpen, site, siteSuffix, path, translate } = this.props; + + let activityLogUrl = '/activity-log' + siteSuffix; + if ( isJetpack && isEnabled( 'manage/themes-jetpack' ) ) { + activityLogUrl += '?group=rewind'; + } return (