mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 06:44:53 +03:00
fix
This commit is contained in:
parent
0bd2bdc1c1
commit
9f0100c7f0
@ -996,7 +996,7 @@ export function ConfigSection({
|
||||
<Button
|
||||
onClick={handleReset}
|
||||
variant="outline"
|
||||
disabled={isSaving || disabled}
|
||||
disabled={isSaving || isSavingAll || disabled}
|
||||
className="flex min-w-36 flex-1 gap-2"
|
||||
>
|
||||
{t("button.undo", { ns: "common", defaultValue: "Undo" })}
|
||||
|
||||
@ -1513,7 +1513,7 @@ export default function Settings() {
|
||||
onClick={handleUndoAll}
|
||||
variant="outline"
|
||||
size="sm"
|
||||
disabled={isSavingAll}
|
||||
disabled={isSavingAll || isAnySectionSaving}
|
||||
className="flex w-full items-center justify-center gap-2"
|
||||
>
|
||||
{t("button.undoAll", {
|
||||
@ -1525,7 +1525,11 @@ export default function Settings() {
|
||||
onClick={handleSaveAll}
|
||||
variant="select"
|
||||
size="sm"
|
||||
disabled={isSavingAll || isAnySectionSaving || hasPendingValidationErrors}
|
||||
disabled={
|
||||
isSavingAll ||
|
||||
isAnySectionSaving ||
|
||||
hasPendingValidationErrors
|
||||
}
|
||||
className="flex w-full items-center justify-center gap-2"
|
||||
>
|
||||
{isSavingAll ? (
|
||||
@ -1681,7 +1685,7 @@ export default function Settings() {
|
||||
onClick={handleUndoAll}
|
||||
variant="outline"
|
||||
size="sm"
|
||||
disabled={isSavingAll}
|
||||
disabled={isSavingAll || isAnySectionSaving}
|
||||
className="flex items-center justify-center gap-2"
|
||||
>
|
||||
{t("button.undoAll", {
|
||||
@ -1693,7 +1697,11 @@ export default function Settings() {
|
||||
variant="select"
|
||||
size="sm"
|
||||
onClick={handleSaveAll}
|
||||
disabled={isSavingAll || isAnySectionSaving || hasPendingValidationErrors}
|
||||
disabled={
|
||||
isSavingAll ||
|
||||
isAnySectionSaving ||
|
||||
hasPendingValidationErrors
|
||||
}
|
||||
className="flex items-center justify-center gap-2"
|
||||
>
|
||||
{isSavingAll ? (
|
||||
@ -1850,6 +1858,8 @@ export default function Settings() {
|
||||
onDeleteProfileSection={handleDeleteProfileForCurrentSection}
|
||||
profilesUIEnabled={profilesUIEnabled}
|
||||
setProfilesUIEnabled={setProfilesUIEnabled}
|
||||
isSavingAll={isSavingAll}
|
||||
onSectionSavingChange={handleSectionSavingChange}
|
||||
/>
|
||||
);
|
||||
})()}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user