mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
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:
1 parent
28ea2184c2
commit
680a40dab5
2 files changed
+2
-1
No files matched your search
@@ -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){
|
||||
|
||||
Reference in new issue
Block a user