Dashboards: Make sure to render dashboard links even if they are marked as "in controls menu" (#115381)

links with type dashboard will now be visible.
This commit is contained in:
Marcus Andersson
2025-12-19 13:48:53 +01:00
committed by GitHub
parent e9a2828f66
commit ece38641ca
@@ -5,11 +5,7 @@ import { isDashboardDataLayerSetState } from '../DashboardDataLayerSet';
import { DashboardScene } from '../DashboardScene';
export function getDashboardControlsLinks(links: DashboardLink[]) {
// Dashboard links are not supported at the moment.
// Reason: nesting <Dropdown> components causes issues since the inner dropdown is rendered in a portal,
// so clicking it closes the parent dropdown (the parent sees it as an overlay click, and the event cannot easily be intercepted,
// as it is in different HTML subtree).
return links.filter((link) => link.placement === 'inControlsMenu' && link.type !== 'dashboards');
return links.filter((link) => link.placement === 'inControlsMenu');
}
export function getDashboardControlsVariables(variables: SceneVariable[]) {