mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Delete save for now
This commit is contained in:
parent
e789380126
commit
db92abad66
@ -9,7 +9,6 @@ declare global {
|
|||||||
"yaml-changed": {
|
"yaml-changed": {
|
||||||
value: string;
|
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 });
|
fireEvent(this, "yaml-changed", { value: this._value });
|
||||||
this.codemirror.on("changes", () => this._onChange());
|
this.codemirror.on("changes", () => this._onChange());
|
||||||
} else {
|
} else {
|
||||||
|
@ -121,7 +121,6 @@ export class HuiEditCard extends LitElement {
|
|||||||
<hui-yaml-editor
|
<hui-yaml-editor
|
||||||
.value="${this._configValue!.value}"
|
.value="${this._configValue!.value}"
|
||||||
@yaml-changed="${this._handleYamlChanged}"
|
@yaml-changed="${this._handleYamlChanged}"
|
||||||
@yaml-save="${this._save}"
|
|
||||||
></hui-yaml-editor>
|
></hui-yaml-editor>
|
||||||
`}
|
`}
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,10 +61,7 @@ class LovelaceFullConfigEditor extends LitElement {
|
|||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
</app-header>
|
</app-header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<hui-yaml-editor
|
<hui-yaml-editor @yaml-changed="${this._yamlChanged}">
|
||||||
@yaml-changed="${this._yamlChanged}"
|
|
||||||
@yaml-save="${this._handleSave}"
|
|
||||||
>
|
|
||||||
</hui-yaml-editor>
|
</hui-yaml-editor>
|
||||||
</div>
|
</div>
|
||||||
</app-header-layout>
|
</app-header-layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user