mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Fixes esphome/issues#1192 - Save on upload bug (#1107)
This commit is contained in:
parent
6505c30c2b
commit
31067530a5
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue