chore(webui): indicate unsaved changes #2436

Merged
Sainan merged 2 commits from webui-unsaved into main 2025-07-08 20:49:22 -07:00
Showing only changes of commit 68c7f8f983 - Show all commits

View File

@ -1957,11 +1957,11 @@ for (const id of uiConfigs) {
document.querySelectorAll(".config-form .input-group").forEach(grp => { document.querySelectorAll(".config-form .input-group").forEach(grp => {
const input = grp.querySelector("input"); const input = grp.querySelector("input");
const btn = grp.querySelector("button"); const btn = grp.querySelector("button");
input.oninput = input.onchange = function() { input.oninput = input.onchange = function () {
btn.classList.remove("btn-secondary"); btn.classList.remove("btn-secondary");
btn.classList.add("btn-primary"); btn.classList.add("btn-primary");
}; };
btn.onclick = function() { btn.onclick = function () {
btn.classList.remove("btn-primary"); btn.classList.remove("btn-primary");
btn.classList.add("btn-secondary"); btn.classList.add("btn-secondary");
}; };