From a779016f2cf668c79be3ae9ed11574bee08e6518 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 8 Feb 2026 13:58:49 -0600 Subject: [PATCH] add undo all button --- web/public/locales/en/common.json | 3 +- .../config-form/sections/BaseSection.tsx | 2 +- web/src/pages/Settings.tsx | 45 ++++++++++++++----- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/web/public/locales/en/common.json b/web/public/locales/en/common.json index 9878a44cb..9dec7b048 100644 --- a/web/public/locales/en/common.json +++ b/web/public/locales/en/common.json @@ -158,7 +158,8 @@ "resetToGlobal": "Reset to Global", "resetToDefault": "Reset to Default", "saveAll": "Save All", - "savingAll": "Saving All…" + "savingAll": "Saving All…", + "undoAll": "Undo All" }, "menu": { "system": "System", diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index bde48dcca..bc0eeffad 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -824,7 +824,7 @@ export function ConfigSection({ disabled={isSaving || disabled} className="flex min-w-36 flex-1 gap-2" > - {t("undo", { ns: "common", defaultValue: "Undo" })} + {t("button.undo", { ns: "common", defaultValue: "Undo" })} )} - {t("undo", { ns: "common", defaultValue: "Undo" })} + {t("button.undoAll", { + ns: "common", + defaultValue: "Undo All", + })} {t("menu.settings", { ns: "common" })} - + {hasPendingChanges && ( - - {isSavingAll ? ( - <> - - {t("button.savingAll", { ns: "common" })} - > - ) : ( - t("button.saveAll", { ns: "common" }) - )} - + + + {t("button.undoAll", { + ns: "common", + defaultValue: "Undo All", + })} + + + {isSavingAll ? ( + <> + + {t("button.savingAll", { ns: "common" })} + > + ) : ( + t("button.saveAll", { ns: "common" }) + )} + + )} {CAMERA_SELECT_BUTTON_PAGES.includes(page) && ( <>