mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Dashboard: remove unused submenuEnabled property (#63289)
remove submenu property
This commit is contained in:
parent
554dc9b97d
commit
985c61d700
@ -1045,15 +1045,9 @@ export class DashboardModel implements TimeModel {
|
||||
|
||||
const navbarHeight = 55;
|
||||
const margin = 20;
|
||||
const submenuHeight = 50;
|
||||
|
||||
let visibleHeight = viewHeight - navbarHeight - margin;
|
||||
|
||||
// Remove submenu height if visible
|
||||
if (this.meta.submenuEnabled && !kioskMode) {
|
||||
visibleHeight -= submenuHeight;
|
||||
}
|
||||
|
||||
// add back navbar height
|
||||
if (kioskMode && kioskMode !== KioskMode.TV) {
|
||||
visibleHeight += navbarHeight;
|
||||
|
@ -23,7 +23,6 @@ export interface DashboardMeta {
|
||||
folderId?: number;
|
||||
folderUid?: string;
|
||||
canMakeEditable?: boolean;
|
||||
submenuEnabled?: boolean;
|
||||
provisioned?: boolean;
|
||||
provisionedExternalId?: string;
|
||||
isStarred?: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user