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:
@@ -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[]) {
|
||||
|
||||
Reference in New Issue
Block a user