mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Fixes esphome/issues#1192 - Save on upload bug (#1107)
This commit is contained in:
parent
6505c30c2b
commit
31067530a5
@ -735,6 +735,7 @@ document.querySelectorAll("[data-action='edit']").forEach((button) => {
|
|||||||
const closeButton = document.querySelector("#js-editor-modal [data-action='close']");
|
const closeButton = document.querySelector("#js-editor-modal [data-action='close']");
|
||||||
saveButton.setAttribute('data-filename', editorActiveFilename);
|
saveButton.setAttribute('data-filename', editorActiveFilename);
|
||||||
uploadButton.setAttribute('data-filename', editorActiveFilename);
|
uploadButton.setAttribute('data-filename', editorActiveFilename);
|
||||||
|
uploadButton.setAttribute('onClick', `saveFile("${editorActiveFilename}")`);
|
||||||
if (editorActiveFilename === "secrets.yaml") {
|
if (editorActiveFilename === "secrets.yaml") {
|
||||||
uploadButton.classList.add("disabled");
|
uploadButton.classList.add("disabled");
|
||||||
editorActiveSecrets = true;
|
editorActiveSecrets = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user