mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
Add support for icon translations (#19406)
* Add support for icon translations * Use slot for icons * Update more-info-climate.ts * Review and fixes * Update entity-registry-settings-editor.ts
This commit is contained in:
@@ -126,9 +126,9 @@ export class HaControlSelectMenu extends SelectBase {
|
||||
|
||||
return html`
|
||||
<div class="icon">
|
||||
${icon && "path" in icon
|
||||
${icon && icon.localName === "ha-svg-icon" && "path" in icon
|
||||
? html`<ha-svg-icon .path=${icon.path}></ha-svg-icon>`
|
||||
: icon && "icon" in icon
|
||||
: icon && icon.localName === "ha-icon" && "icon" in icon
|
||||
? html`<ha-icon .path=${icon.icon}></ha-icon>`
|
||||
: html`<slot name="icon"></slot>`}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user