From 89aa04650087c979c6bd393bc5977d3e54135e6c Mon Sep 17 00:00:00 2001 From: David Featherston Date: Mon, 21 Aug 2023 10:12:33 +1000 Subject: [PATCH] feat(@dpc-sdp/nuxt-ripple): add flag to disable primary nav search --- packages/nuxt-ripple/components/TideBaseLayout.vue | 1 + packages/ripple-tide-api/types.d.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/nuxt-ripple/components/TideBaseLayout.vue b/packages/nuxt-ripple/components/TideBaseLayout.vue index 1560bdec03..716c731ec3 100644 --- a/packages/nuxt-ripple/components/TideBaseLayout.vue +++ b/packages/nuxt-ripple/components/TideBaseLayout.vue @@ -20,6 +20,7 @@ :secondaryLogo="site?.siteLogo" :items="site?.menus.menuMain || []" :showQuickExit="site?.showQuickExit" + :showSearch="!featureFlags?.disablePrimaryNavSearch" > diff --git a/packages/ripple-tide-api/types.d.ts b/packages/ripple-tide-api/types.d.ts index 6fc1cce095..b6f264759e 100644 --- a/packages/ripple-tide-api/types.d.ts +++ b/packages/ripple-tide-api/types.d.ts @@ -216,6 +216,10 @@ export interface IRplFeatureFlags { * @description Option to disable the display of topics and tags on all content types */ disableTopicTags?: boolean + /** + * @description Option to disable the display of the search form within the primary navigation + */ + disablePrimaryNavSearch?: boolean /** * @description Option to disable the display of coloured/rainbow stripes on top of promo cards */