Skip to content

Commit

Permalink
Add Emails to fallback nav menu (#52150)
Browse files Browse the repository at this point in the history
* Add Emails to fallback menu, and re-order items
* Protect new item behind feature flag
  • Loading branch information
daledupreez authored Apr 28, 2021
1 parent 1e0114c commit ba631ba
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions client/my-sites/sidebar-unified/static-data/fallback-menu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* External dependencies
*/
import { isEnabled } from '@automattic/calypso-config';
import { translate } from 'i18n-calypso';

/* eslint-disable jsdoc/require-param */
Expand Down Expand Up @@ -71,17 +72,28 @@ export default function buildFallbackResponse( {
},
{
parent: 'upgrades',
slug: 'Purchases',
title: translate( 'Purchases' ),
slug: 'Domains',
title: translate( 'Domains' ),
type: 'submenu-item',
url: `/purchases/subscriptions/${ siteDomain }`,
url: `/domains/manage/${ siteDomain }`,
},
...( isEnabled( 'email/centralized-home' )
? [
{
parent: 'upgrades',
slug: 'Emails',
title: translate( 'Emails' ),
type: 'submenu-item',
url: `/email/${ siteDomain }`,
},
]
: [] ),
{
parent: 'upgrades',
slug: 'Domains',
title: translate( 'Domains' ),
slug: 'Purchases',
title: translate( 'Purchases' ),
type: 'submenu-item',
url: `/domains/manage/${ siteDomain }`,
url: `/purchases/subscriptions/${ siteDomain }`,
},
],
},
Expand Down

0 comments on commit ba631ba

Please sign in to comment.