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
|
interactive
|
||||||
type="button"
|
type="button"
|
||||||
class="paste"
|
class="paste"
|
||||||
.value=${PASTE_VALUE}
|
@click=${this._paste}
|
||||||
@click=${this._selected}
|
|
||||||
>
|
>
|
||||||
<div class="shortcut-label">
|
<div class="shortcut-label">
|
||||||
<div class="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 }>) {
|
private _selected(ev: CustomEvent<{ value: string }>) {
|
||||||
let target: HassServiceTarget | undefined;
|
let target: HassServiceTarget | undefined;
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user