mirror of
https://github.com/junkfix/config-editor-card.git
synced 2025-09-07 18:11:22 +02:00
Update config-editor-card.js
This commit is contained in:
parent
8d3b767349
commit
4c2e75e0d4
|
@ -78,10 +78,10 @@ render() {
|
|||
name="plain" value="1" @change=${this.plainChange}></label>
|
||||
</div>
|
||||
${this.edit.plainBox ?
|
||||
html`<textarea rows="10"
|
||||
@change=${this.updateText} id="code">${this.code}</textarea>`:
|
||||
html`<ha-code-editor id="code" @keydown=${this.saveKey} .hass=${this._hass} hasAutocomplete mode="yaml"
|
||||
@value-changed=${this.updateText} dir="ltr"></ha-code-editor>`}
|
||||
html`<textarea rows="10" id="code" @keydown=${this.saveKey}
|
||||
@change=${this.updateText}>${this.code}</textarea>`:
|
||||
html`<ha-code-editor id="code" @keydown=${this.saveKey} hasAutocomplete mode="yaml"
|
||||
@value-changed=${this.updateText} dir="ltr" .hass=${this._hass}></ha-code-editor>`}
|
||||
</div>
|
||||
<div class="bar">
|
||||
<div>${this.alertLine}</div>
|
||||
|
|
Loading…
Reference in a new issue