diff --git a/src/components/ha-sidebar.ts b/src/components/ha-sidebar.ts index a50500dd1b..2116991208 100644 --- a/src/components/ha-sidebar.ts +++ b/src/components/ha-sidebar.ts @@ -144,6 +144,7 @@ export const computePanels = memoizeOne( if ( !isDefaultPanel && (!panel.title || + panel.show_in_sidebar === false || hiddenPanels.includes(panel.url_path) || (panel.default_visible === false && !panelsOrder.includes(panel.url_path))) diff --git a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts index 0a23dd0e6c..ebe3be7d9e 100644 --- a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts +++ b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts @@ -344,7 +344,7 @@ export class HaConfigLovelaceDashboards extends LitElement { const item: DataTableItem = { icon: getPanelIcon(panelInfo), title: getPanelTitle(this.hass, panelInfo) || panelInfo.url_path, - show_in_sidebar: panelInfo.title != null, + show_in_sidebar: panelInfo.show_in_sidebar || false, mode: "storage", url_path: panelInfo.url_path, filename: "", @@ -487,7 +487,7 @@ export class HaConfigLovelaceDashboards extends LitElement { title: getPanelTitle(this.hass, panelInfo) || panelInfo.url_path, icon: getPanelIcon(panelInfo), requireAdmin: panelInfo.require_admin || false, - showInSidebar: panelInfo.title != null, + showInSidebar: panelInfo.show_in_sidebar || false, isDefault: panelInfo.url_path === defaultPanel, updatePanel: async (values) => { await updatePanel(this.hass!, panelInfo.url_path, values); diff --git a/src/types.ts b/src/types.ts index 90cc90de76..f16f503b83 100644 --- a/src/types.ts +++ b/src/types.ts @@ -142,6 +142,7 @@ export interface PanelInfo | null> { config_panel_domain?: string; default_visible?: boolean; require_admin?: boolean; + show_in_sidebar?: boolean; } export type Panels = Record;