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