mirror of
https://github.com/esphome/esphome.git
synced 2024-09-02 00:20:30 +02: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']");
|
||||
saveButton.setAttribute('data-filename', editorActiveFilename);
|
||||
uploadButton.setAttribute('data-filename', editorActiveFilename);
|
||||
uploadButton.setAttribute('onClick', `saveFile("${editorActiveFilename}")`);
|
||||
if (editorActiveFilename === "secrets.yaml") {
|
||||
uploadButton.classList.add("disabled");
|
||||
editorActiveSecrets = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user