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