Icon Picker (#10161)

This commit is contained in:
Paul Bottein
2021-10-18 22:45:21 +02:00
committed by GitHub
parent 403c042235
commit 2770d1f36b
19 changed files with 226 additions and 58 deletions

View File

@@ -30,7 +30,7 @@ import "../../../components/ha-button-menu";
import "../../../components/ha-card";
import "../../../components/ha-fab";
import "../../../components/ha-icon-button";
import "../../../components/ha-icon-input";
import "../../../components/ha-icon-picker";
import "../../../components/ha-svg-icon";
import "../../../components/ha-yaml-editor";
import type { HaYamlEditor } from "../../../components/ha-yaml-editor";
@@ -213,7 +213,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
@change=${this._aliasChanged}
>
</paper-input>
<ha-icon-input
<ha-icon-picker
.label=${this.hass.localize(
"ui.panel.config.script.editor.icon"
)}
@@ -221,7 +221,7 @@ export class HaScriptEditor extends KeyboardShortcutMixin(LitElement) {
.value=${this._config.icon}
@value-changed=${this._valueChanged}
>
</ha-icon-input>
</ha-icon-picker>
${!this.scriptEntityId
? html`<paper-input
.label=${this.hass.localize(