Mark paste button list item as interactive (#19898)

* Mark paste button list item as interactive

* Update add-automation-element-dialog.ts

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Paulus Schoutsen 2024-02-28 05:46:27 -05:00 committed by GitHub
parent 401bbed67b
commit 9ae234a02f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -536,6 +536,8 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
(!this._group || (!this._group ||
items.find((item) => item.key === this._params!.clipboardItem)) items.find((item) => item.key === this._params!.clipboardItem))
? html`<ha-list-item-new ? html`<ha-list-item-new
interactive
type="button"
class="paste" class="paste"
.value=${PASTE_VALUE} .value=${PASTE_VALUE}
@click=${this._selected} @click=${this._selected}
@ -543,7 +545,7 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
${this.hass.localize( ${this.hass.localize(
`ui.panel.config.automation.editor.${this._params.type}s.paste` `ui.panel.config.automation.editor.${this._params.type}s.paste`
)} )}
<span slot="secondary" <span slot="supporting-text"
>${this.hass.localize( >${this.hass.localize(
// @ts-ignore // @ts-ignore
`ui.panel.config.automation.editor.${this._params.type}s.type.${this._params.clipboardItem}.label` `ui.panel.config.automation.editor.${this._params.type}s.type.${this._params.clipboardItem}.label`