mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Show the correct area icon in entity breadcrumb (#24913)
This commit is contained in:
parent
88f1dc9c16
commit
27e13017c3
@ -3,7 +3,7 @@ import {
|
|||||||
mdiAlertCircleOutline,
|
mdiAlertCircleOutline,
|
||||||
mdiDevices,
|
mdiDevices,
|
||||||
mdiPaletteSwatch,
|
mdiPaletteSwatch,
|
||||||
mdiSofa,
|
mdiTextureBox,
|
||||||
} from "@mdi/js";
|
} from "@mdi/js";
|
||||||
import type { CSSResultGroup, PropertyValues } from "lit";
|
import type { CSSResultGroup, PropertyValues } from "lit";
|
||||||
import { LitElement, css, html, nothing } from "lit";
|
import { LitElement, css, html, nothing } from "lit";
|
||||||
@ -235,9 +235,14 @@ export class HaRelatedItems extends LitElement {
|
|||||||
})}
|
})}
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
></div>`
|
></div>`
|
||||||
: html`<ha-svg-icon
|
: area.icon
|
||||||
.path=${mdiSofa}
|
? html`<ha-icon
|
||||||
slot="graphic"
|
slot="graphic"
|
||||||
|
.icon=${area.icon}
|
||||||
|
></ha-icon>`
|
||||||
|
: html`<ha-svg-icon
|
||||||
|
slot="graphic"
|
||||||
|
.path=${mdiTextureBox}
|
||||||
></ha-svg-icon>`}
|
></ha-svg-icon>`}
|
||||||
${area.name}
|
${area.name}
|
||||||
<ha-icon-next slot="meta"></ha-icon-next>
|
<ha-icon-next slot="meta"></ha-icon-next>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user