mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Register closeEditor as property of hui-editor (#2797)
* Register closeEditor as property of hui-editor * Belt and suspenders * Update hui-editor.ts
This commit is contained in:
parent
8a9594d918
commit
7904483272
@ -38,6 +38,7 @@ class LovelaceFullConfigEditor extends LitElement {
|
|||||||
return {
|
return {
|
||||||
hass: {},
|
hass: {},
|
||||||
lovelace: {},
|
lovelace: {},
|
||||||
|
closeEditor: {},
|
||||||
_saving: {},
|
_saving: {},
|
||||||
_changed: {},
|
_changed: {},
|
||||||
};
|
};
|
||||||
@ -150,7 +151,9 @@ class LovelaceFullConfigEditor extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.onbeforeunload = null;
|
window.onbeforeunload = null;
|
||||||
this.closeEditor!();
|
if (this.closeEditor) {
|
||||||
|
this.closeEditor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _handleSave() {
|
private async _handleSave() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user