mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47:40 +03:00
fix
This commit is contained in:
parent
0bd2bdc1c1
commit
9f0100c7f0
@ -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" })}
|
||||||
|
|||||||
@ -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}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})()}
|
})()}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user