From ea5bf177804f3eb9d6c4bac02d32bd9e31213066 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 6 Dec 2024 16:16:33 +0100 Subject: [PATCH] Fix has-secondary attribute (#23187) --- src/components/ha-navigation-list.ts | 3 ++- src/panels/config/core/ha-config-system-navigation.ts | 2 +- src/panels/config/dashboard/ha-config-navigation.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/ha-navigation-list.ts b/src/components/ha-navigation-list.ts index 16139441ba..65cd965092 100644 --- a/src/components/ha-navigation-list.ts +++ b/src/components/ha-navigation-list.ts @@ -19,7 +19,8 @@ class HaNavigationList extends LitElement { @property({ attribute: false }) public pages!: PageNavigation[]; - @property({ attribute: false, type: Boolean }) public hasSecondary = false; + @property({ attribute: "has-secondary", type: Boolean }) + public hasSecondary = false; @property() public label?: string; diff --git a/src/panels/config/core/ha-config-system-navigation.ts b/src/panels/config/core/ha-config-system-navigation.ts index 4065996f4c..d15a0f35b9 100644 --- a/src/panels/config/core/ha-config-system-navigation.ts +++ b/src/panels/config/core/ha-config-system-navigation.ts @@ -139,7 +139,7 @@ class HaConfigSystemNavigation extends LitElement { .hass=${this.hass} .narrow=${this.narrow} .pages=${pages} - hasSecondary + has-secondary .label=${this.hass.localize( "ui.panel.config.dashboard.system.main" )} diff --git a/src/panels/config/dashboard/ha-config-navigation.ts b/src/panels/config/dashboard/ha-config-navigation.ts index fcabf2148e..0b0f926dad 100644 --- a/src/panels/config/dashboard/ha-config-navigation.ts +++ b/src/panels/config/dashboard/ha-config-navigation.ts @@ -57,7 +57,7 @@ class HaConfigNavigation extends LitElement { })); return html`