Delete save for now

This commit is contained in:
Bram Kragten 2019-01-30 20:59:49 +01:00
parent e789380126
commit db92abad66
3 changed files with 1 additions and 9 deletions

View File

@ -9,7 +9,6 @@ declare global {
"yaml-changed": {
value: string;
};
"yaml-save": {};
}
}
@ -74,9 +73,6 @@ export class HuiYamlEditor extends HTMLElement {
},
},
});
this.codemirror.commands.save = () => {
fireEvent(this, "yaml-save");
};
fireEvent(this, "yaml-changed", { value: this._value });
this.codemirror.on("changes", () => this._onChange());
} else {

View File

@ -121,7 +121,6 @@ export class HuiEditCard extends LitElement {
<hui-yaml-editor
.value="${this._configValue!.value}"
@yaml-changed="${this._handleYamlChanged}"
@yaml-save="${this._save}"
></hui-yaml-editor>
`}
</div>

View File

@ -61,10 +61,7 @@ class LovelaceFullConfigEditor extends LitElement {
</app-toolbar>
</app-header>
<div class="content">
<hui-yaml-editor
@yaml-changed="${this._yamlChanged}"
@yaml-save="${this._handleSave}"
>
<hui-yaml-editor @yaml-changed="${this._yamlChanged}">
</hui-yaml-editor>
</div>
</app-header-layout>