This commit is contained in:
Josh Hawkins 2026-03-26 12:12:26 -05:00
parent 0bd2bdc1c1
commit 9f0100c7f0
2 changed files with 15 additions and 5 deletions

View File

@ -996,7 +996,7 @@ export function ConfigSection({
<Button <Button
onClick={handleReset} onClick={handleReset}
variant="outline" variant="outline"
disabled={isSaving || disabled} disabled={isSaving || isSavingAll || disabled}
className="flex min-w-36 flex-1 gap-2" className="flex min-w-36 flex-1 gap-2"
> >
{t("button.undo", { ns: "common", defaultValue: "Undo" })} {t("button.undo", { ns: "common", defaultValue: "Undo" })}

View File

@ -1513,7 +1513,7 @@ export default function Settings() {
onClick={handleUndoAll} onClick={handleUndoAll}
variant="outline" variant="outline"
size="sm" size="sm"
disabled={isSavingAll} disabled={isSavingAll || isAnySectionSaving}
className="flex w-full items-center justify-center gap-2" className="flex w-full items-center justify-center gap-2"
> >
{t("button.undoAll", { {t("button.undoAll", {
@ -1525,7 +1525,11 @@ export default function Settings() {
onClick={handleSaveAll} onClick={handleSaveAll}
variant="select" variant="select"
size="sm" size="sm"
disabled={isSavingAll || isAnySectionSaving || hasPendingValidationErrors} disabled={
isSavingAll ||
isAnySectionSaving ||
hasPendingValidationErrors
}
className="flex w-full items-center justify-center gap-2" className="flex w-full items-center justify-center gap-2"
> >
{isSavingAll ? ( {isSavingAll ? (
@ -1681,7 +1685,7 @@ export default function Settings() {
onClick={handleUndoAll} onClick={handleUndoAll}
variant="outline" variant="outline"
size="sm" size="sm"
disabled={isSavingAll} disabled={isSavingAll || isAnySectionSaving}
className="flex items-center justify-center gap-2" className="flex items-center justify-center gap-2"
> >
{t("button.undoAll", { {t("button.undoAll", {
@ -1693,7 +1697,11 @@ export default function Settings() {
variant="select" variant="select"
size="sm" size="sm"
onClick={handleSaveAll} onClick={handleSaveAll}
disabled={isSavingAll || isAnySectionSaving || hasPendingValidationErrors} disabled={
isSavingAll ||
isAnySectionSaving ||
hasPendingValidationErrors
}
className="flex items-center justify-center gap-2" className="flex items-center justify-center gap-2"
> >
{isSavingAll ? ( {isSavingAll ? (
@ -1850,6 +1858,8 @@ export default function Settings() {
onDeleteProfileSection={handleDeleteProfileForCurrentSection} onDeleteProfileSection={handleDeleteProfileForCurrentSection}
profilesUIEnabled={profilesUIEnabled} profilesUIEnabled={profilesUIEnabled}
setProfilesUIEnabled={setProfilesUIEnabled} setProfilesUIEnabled={setProfilesUIEnabled}
isSavingAll={isSavingAll}
onSectionSavingChange={handleSectionSavingChange}
/> />
); );
})()} })()}