mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Fix thingktalk dialog (#10600)
This commit is contained in:
parent
6518aefb7f
commit
6623e5f017
@ -63,6 +63,13 @@ class DialogThingtalk extends LitElement {
|
|||||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public closeInitDialog() {
|
||||||
|
if (this._placeholders) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.closeDialog();
|
||||||
|
}
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
if (!this._params) {
|
if (!this._params) {
|
||||||
return html``;
|
return html``;
|
||||||
@ -82,7 +89,7 @@ class DialogThingtalk extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<ha-dialog
|
<ha-dialog
|
||||||
open
|
open
|
||||||
@closed=${this.closeDialog}
|
@closed=${this.closeInitDialog}
|
||||||
.heading=${this.hass.localize(
|
.heading=${this.hass.localize(
|
||||||
`ui.panel.config.automation.thingtalk.task_selection.header`
|
`ui.panel.config.automation.thingtalk.task_selection.header`
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user