fix(backups): preserve retry settings when toggling schedules
This commit is contained in:
parent
94f6d0529f
commit
70d7591caf
1 changed files with 8 additions and 3 deletions
|
|
@ -79,7 +79,10 @@ export function ScheduleDetailsPage(props: Props) {
|
||||||
isLoading,
|
isLoading,
|
||||||
failureReason,
|
failureReason,
|
||||||
} = useQuery({
|
} = useQuery({
|
||||||
...listSnapshotsOptions({ path: { shortId: schedule.repository.shortId }, query: { backupId: schedule.shortId } }),
|
...listSnapshotsOptions({
|
||||||
|
path: { shortId: schedule.repository.shortId },
|
||||||
|
query: { backupId: schedule.shortId },
|
||||||
|
}),
|
||||||
initialData: loaderData.snapshots,
|
initialData: loaderData.snapshots,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -168,6 +171,8 @@ export function ScheduleDetailsPage(props: Props) {
|
||||||
oneFileSystem: schedule.oneFileSystem,
|
oneFileSystem: schedule.oneFileSystem,
|
||||||
customResticParams: schedule.customResticParams || [],
|
customResticParams: schedule.customResticParams || [],
|
||||||
backupWebhooks: schedule.backupWebhooks,
|
backupWebhooks: schedule.backupWebhooks,
|
||||||
|
maxRetries: schedule.maxRetries,
|
||||||
|
retryDelay: schedule.retryDelay,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -253,8 +258,8 @@ export function ScheduleDetailsPage(props: Props) {
|
||||||
<AlertDialogHeader>
|
<AlertDialogHeader>
|
||||||
<AlertDialogTitle>Delete snapshot?</AlertDialogTitle>
|
<AlertDialogTitle>Delete snapshot?</AlertDialogTitle>
|
||||||
<AlertDialogDescription>
|
<AlertDialogDescription>
|
||||||
This action cannot be undone. This will permanently delete the snapshot and all its data from the
|
This action cannot be undone. This will permanently delete the snapshot and all its data
|
||||||
repository.
|
from the repository.
|
||||||
</AlertDialogDescription>
|
</AlertDialogDescription>
|
||||||
</AlertDialogHeader>
|
</AlertDialogHeader>
|
||||||
<AlertDialogFooter>
|
<AlertDialogFooter>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue