Commit 8fd1931e by Hugo Häggmark Committed by GitHub

Templating: Fixes default visibility for submenu to same as dashboard (#21050)

parent 3e73258c
......@@ -13,7 +13,7 @@ export class SubMenuCtrl {
constructor(private variableSrv: VariableSrv, private $location: ILocationService) {
this.annotations = this.dashboard.templating.list;
this.variables = this.variableSrv.variables;
this.submenuEnabled = false;
this.submenuEnabled = this.dashboard.meta.submenuEnabled;
this.dashboard.events.on(CoreEvents.submenuVisibilityChanged, (enabled: boolean) => {
this.submenuEnabled = enabled;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment