web: highlight Save to flash only when there are unsaved changes

The button in the header was always drawn as the primary action, on
every page, so it competed with each page's own buttons, for example
the upload button on the Firmware page. It is now a plain button and
turns primary together with the "unsaved changes" badge.
This commit is contained in:
bloqaudio committed 2026-10-15 00:12:14 -05:00
1 parent 28ea2184c2
commit 680a40dab5
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -836,6 +836,7 @@ function isConfCmd(line){
function setDirty(d){
S.dirty=d;
$("dirty").classList.toggle("show",d);
$("saveBtn").classList.toggle("pri",d);
}
function postCmd(cmd,quiet){
return api("/cmd",{method:"POST",body:cmd}).then(function(r){