From 0c081633573a35716a8ba3d951800192e443d82c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Fern=C3=A1ndez?= Date: Tue, 19 Sep 2023 12:34:53 +0200 Subject: [PATCH] Navigation: hide `sectionNav` when the `dockedMegaMenu` feature toggle is enabled (#75026) --- public/app/core/components/AppChrome/AppChrome.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app/core/components/AppChrome/AppChrome.tsx b/public/app/core/components/AppChrome/AppChrome.tsx index d803f3fc40e..944a4e2c3c8 100644 --- a/public/app/core/components/AppChrome/AppChrome.tsx +++ b/public/app/core/components/AppChrome/AppChrome.tsx @@ -4,6 +4,7 @@ import React, { PropsWithChildren } from 'react'; import { GrafanaTheme2, PageLayoutType } from '@grafana/data'; import { useStyles2, LinkButton } from '@grafana/ui'; +import config from 'app/core/config'; import { useGrafana } from 'app/core/context/GrafanaContext'; import { CommandPalette } from 'app/features/commandPalette/CommandPalette'; import { KioskMode } from 'app/types'; @@ -61,7 +62,9 @@ export function AppChrome({ children }: Props) { )}
- {state.layout === PageLayoutType.Standard && state.sectionNav && } + {state.layout === PageLayoutType.Standard && state.sectionNav && !config.featureToggles.dockedMegaMenu && ( + + )}
{children}