mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 02:38:53 +00:00
fix paste in add tca dialog (#28286)
This commit is contained in:
@@ -555,8 +555,7 @@ class DialogAddAutomationElement
|
||||
interactive
|
||||
type="button"
|
||||
class="paste"
|
||||
.value=${PASTE_VALUE}
|
||||
@click=${this._selected}
|
||||
@click=${this._paste}
|
||||
>
|
||||
<div class="shortcut-label">
|
||||
<div class="label">
|
||||
@@ -1670,6 +1669,11 @@ class DialogAddAutomationElement
|
||||
});
|
||||
}
|
||||
|
||||
private _paste() {
|
||||
this._params!.add(PASTE_VALUE);
|
||||
this.closeDialog();
|
||||
}
|
||||
|
||||
private _selected(ev: CustomEvent<{ value: string }>) {
|
||||
let target: HassServiceTarget | undefined;
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user