SingleTopNav: add property to grafana_mega_menu_open (#95774)

This commit is contained in:
Laura Fernández 2024-11-04 13:12:59 +01:00 committed by GitHub
parent afcd620d21
commit 0802ebcd1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,7 +171,10 @@ export class AppChromeService {
if (megaMenuDocked) {
store.set(DOCKED_MENU_OPEN_LOCAL_STORAGE_KEY, newOpenState);
}
reportInteraction('grafana_mega_menu_open', { state: newOpenState });
reportInteraction('grafana_mega_menu_open', {
state: newOpenState,
singleTopNav: Boolean(config.featureToggles.singleTopNav),
});
this.update({
megaMenuOpen: newOpenState,
});