Skip to content

Commit

Permalink
Fix has-secondary attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Dec 6, 2024
1 parent 8579bee commit b84e994
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/ha-navigation-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/core/ha-config-system-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)}
Expand Down
2 changes: 1 addition & 1 deletion src/panels/config/dashboard/ha-config-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class HaConfigNavigation extends LitElement {
}));
return html`
<ha-navigation-list
hasSecondary
has-secondary
.hass=${this.hass}
.narrow=${this.narrow}
.pages=${pages}
Expand Down

0 comments on commit b84e994

Please sign in to comment.