mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56: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 {
|
||||
hass: {},
|
||||
lovelace: {},
|
||||
closeEditor: {},
|
||||
_saving: {},
|
||||
_changed: {},
|
||||
};
|
||||
@ -150,7 +151,9 @@ class LovelaceFullConfigEditor extends LitElement {
|
||||
}
|
||||
}
|
||||
window.onbeforeunload = null;
|
||||
this.closeEditor!();
|
||||
if (this.closeEditor) {
|
||||
this.closeEditor();
|
||||
}
|
||||
}
|
||||
|
||||
private async _handleSave() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user