Dashboard: remove unused submenuEnabled property (#63289)

remove submenu property
This commit is contained in:
Ryan McKinley 2023-02-12 09:10:29 -08:00 committed by GitHub
parent 554dc9b97d
commit 985c61d700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -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;

View File

@ -23,7 +23,6 @@ export interface DashboardMeta {
folderId?: number;
folderUid?: string;
canMakeEditable?: boolean;
submenuEnabled?: boolean;
provisioned?: boolean;
provisionedExternalId?: string;
isStarred?: boolean;