mirror of
https://github.com/grafana/grafana.git
synced 2025-01-15 19:22:34 -06:00
ShareButton: Add dropdown tracking (#95905)
This commit is contained in:
parent
da1a5426d0
commit
ef4640abfb
@ -26,6 +26,10 @@ export default function ShareButton({ dashboard, panel }: { dashboard: Dashboard
|
||||
}, [dashboard]);
|
||||
|
||||
const onMenuClick = useCallback((isOpen: boolean) => {
|
||||
if (isOpen) {
|
||||
DashboardInteractions.toolbarShareDropdownClick();
|
||||
}
|
||||
|
||||
setIsOpen(isOpen);
|
||||
}, []);
|
||||
|
||||
|
@ -28,6 +28,9 @@ export const DashboardInteractions = {
|
||||
toolbarShareClick: () => {
|
||||
reportDashboardInteraction('toolbar_actions_clicked', { item: 'share' });
|
||||
},
|
||||
toolbarShareDropdownClick: () => {
|
||||
reportDashboardInteraction('toolbar_actions_clicked', { item: 'share_dropdown' });
|
||||
},
|
||||
toolbarAddClick: () => {
|
||||
reportDashboardInteraction('toolbar_actions_clicked', { item: 'add' });
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user