From 680a40dab5fe295c89bbc93a07851140c7b311c1 Mon Sep 17 00:00:00 2001 From: bloqaudio Date: Thu, 15 Oct 2026 00:12:14 -0500 Subject: [PATCH] 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. --- html/app.js | 1 + html/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/html/app.js b/html/app.js index 626e522c..528cae21 100644 --- a/html/app.js +++ b/html/app.js @@ -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){ diff --git a/html/index.html b/html/index.html index 21b7d17f..6e8c782a 100644 --- a/html/index.html +++ b/html/index.html @@ -216,7 +216,7 @@ button.danger{background:var(--bad);color:#fff;border-color:transparent} unsaved changes - +