mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
parent
3fdd6a80f9
commit
f01fe65be4
@ -651,11 +651,13 @@ class HaSidebar extends LitElement {
|
|||||||
return panels.map((panel) =>
|
return panels.map((panel) =>
|
||||||
this._renderPanel(
|
this._renderPanel(
|
||||||
panel.url_path,
|
panel.url_path,
|
||||||
panel.url_path === "lovelace"
|
panel.url_path === this.hass.defaultPanel
|
||||||
? this.hass.localize("panel.states")
|
? panel.title || this.hass.localize("panel.states")
|
||||||
: this.hass.localize(`panel.${panel.title}`) || panel.title,
|
: this.hass.localize(`panel.${panel.title}`) || panel.title,
|
||||||
panel.url_path === "lovelace" ? undefined : panel.icon,
|
panel.icon,
|
||||||
panel.url_path === "lovelace" ? mdiViewDashboard : undefined
|
panel.url_path === this.hass.defaultPanel && !panel.icon
|
||||||
|
? mdiViewDashboard
|
||||||
|
: undefined
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user