mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Disable submenu when autopanels is enabled
This commit is contained in:
committed by
Torkel Ödegaard
parent
36c406eefb
commit
4b84a58575
@@ -9,6 +9,7 @@ import sortByKeys from 'app/core/utils/sort_by_keys';
|
||||
|
||||
import { PanelModel } from './panel_model';
|
||||
import { DashboardMigrator } from './dashboard_migration';
|
||||
import { tickStep } from '../../core/utils/ticks';
|
||||
|
||||
export class DashboardModel {
|
||||
id: any;
|
||||
@@ -591,6 +592,10 @@ export class DashboardModel {
|
||||
|
||||
updateSubmenuVisibility() {
|
||||
this.meta.submenuEnabled = (() => {
|
||||
if (this.meta.autofitpanels) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.links.length > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user