mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Delete save for now
This commit is contained in:
parent
e789380126
commit
db92abad66
@ -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 {
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user