diff --git a/packages/grafana-e2e-selectors/src/selectors/components.ts b/packages/grafana-e2e-selectors/src/selectors/components.ts index d8599280e4e..3d1266e649a 100644 --- a/packages/grafana-e2e-selectors/src/selectors/components.ts +++ b/packages/grafana-e2e-selectors/src/selectors/components.ts @@ -257,7 +257,7 @@ export const Components = { button: 'Configuration', }, Toggle: { - button: 'Toggle menu', + button: 'data-testid Toggle menu', }, Reporting: { button: 'Reporting', diff --git a/public/app/core/components/AppChrome/DockedMegaMenu/MegaMenu.tsx b/public/app/core/components/AppChrome/DockedMegaMenu/MegaMenu.tsx index fae86e4e576..220967c06a5 100644 --- a/public/app/core/components/AppChrome/DockedMegaMenu/MegaMenu.tsx +++ b/public/app/core/components/AppChrome/DockedMegaMenu/MegaMenu.tsx @@ -60,14 +60,10 @@ export const MegaMenu = React.memo( onClick={state.megaMenu === 'open' ? onClose : undefined} activeItem={activeItem} /> - {index === 0 && ( + {index === 0 && Boolean(state.megaMenu === 'open') && ( state.navIndex)[HOME_NAV_ID]; const styles = useStyles2(getStyles); const breadcrumbs = buildBreadcrumbs(sectionNav, pageNav, homeNav); @@ -45,10 +48,15 @@ export function NavToolbar({ diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index 75dbd521ff5..02ec36f904e 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -863,12 +863,12 @@ }, "megamenu": { "close": "", - "dock": "", - "undock": "" + "dock": "" }, "toolbar": { + "close-menu": "", "enable-kiosk": "Kiosk-Modus aktivieren", - "toggle-menu": "Menü umschalten", + "open-menu": "", "toggle-search-bar": "Obere Suchleiste umschalten" } }, diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index af01a8f1c48..b8f585003a1 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -863,12 +863,12 @@ }, "megamenu": { "close": "Close menu", - "dock": "Dock menu", - "undock": "Undock menu" + "dock": "Dock menu" }, "toolbar": { + "close-menu": "Close menu", "enable-kiosk": "Enable kiosk mode", - "toggle-menu": "Toggle menu", + "open-menu": "Open menu", "toggle-search-bar": "Toggle top search bar" } }, diff --git a/public/locales/es-ES/grafana.json b/public/locales/es-ES/grafana.json index a858fddf489..5cf2a250f47 100644 --- a/public/locales/es-ES/grafana.json +++ b/public/locales/es-ES/grafana.json @@ -869,12 +869,12 @@ }, "megamenu": { "close": "", - "dock": "", - "undock": "" + "dock": "" }, "toolbar": { + "close-menu": "", "enable-kiosk": "Activar el modo de quiosco", - "toggle-menu": "Activar o desactivar menú", + "open-menu": "", "toggle-search-bar": "Activar o desactivar la barra de búsqueda superior" } }, diff --git a/public/locales/fr-FR/grafana.json b/public/locales/fr-FR/grafana.json index edfe34f9b5d..fc1698a3b6c 100644 --- a/public/locales/fr-FR/grafana.json +++ b/public/locales/fr-FR/grafana.json @@ -869,12 +869,12 @@ }, "megamenu": { "close": "", - "dock": "", - "undock": "" + "dock": "" }, "toolbar": { + "close-menu": "", "enable-kiosk": "Activer le mode kiosque", - "toggle-menu": "Afficher/Masquer le menu", + "open-menu": "", "toggle-search-bar": "Afficher/Masquer la barre de recherche" } }, diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index 93993b5c1bf..306d52bc085 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -863,12 +863,12 @@ }, "megamenu": { "close": "Cľőşę męʼnū", - "dock": "Đőčĸ męʼnū", - "undock": "Ůʼnđőčĸ męʼnū" + "dock": "Đőčĸ męʼnū" }, "toolbar": { + "close-menu": "Cľőşę męʼnū", "enable-kiosk": "Ēʼnäþľę ĸįőşĸ mőđę", - "toggle-menu": "Ŧőģģľę męʼnū", + "open-menu": "Øpęʼn męʼnū", "toggle-search-bar": "Ŧőģģľę ŧőp şęäřčĥ þäř" } }, diff --git a/public/locales/zh-Hans/grafana.json b/public/locales/zh-Hans/grafana.json index 2c3b6c26aa5..12307a5ed52 100644 --- a/public/locales/zh-Hans/grafana.json +++ b/public/locales/zh-Hans/grafana.json @@ -857,12 +857,12 @@ }, "megamenu": { "close": "", - "dock": "", - "undock": "" + "dock": "" }, "toolbar": { + "close-menu": "", "enable-kiosk": "启用 kiosk 模式", - "toggle-menu": "切换菜单", + "open-menu": "", "toggle-search-bar": "切换顶部搜索栏" } },