fix(backups): preserve retry settings when toggling schedules

This commit is contained in:
Nicolas Meienberger 2026-05-19 17:20:07 +02:00
parent 94f6d0529f
commit 70d7591caf
No known key found for this signature in database

View file

@ -79,7 +79,10 @@ export function ScheduleDetailsPage(props: Props) {
isLoading,
failureReason,
} = useQuery({
...listSnapshotsOptions({ path: { shortId: schedule.repository.shortId }, query: { backupId: schedule.shortId } }),
...listSnapshotsOptions({
path: { shortId: schedule.repository.shortId },
query: { backupId: schedule.shortId },
}),
initialData: loaderData.snapshots,
});
@ -168,6 +171,8 @@ export function ScheduleDetailsPage(props: Props) {
oneFileSystem: schedule.oneFileSystem,
customResticParams: schedule.customResticParams || [],
backupWebhooks: schedule.backupWebhooks,
maxRetries: schedule.maxRetries,
retryDelay: schedule.retryDelay,
},
});
};
@ -253,8 +258,8 @@ export function ScheduleDetailsPage(props: Props) {
<AlertDialogHeader>
<AlertDialogTitle>Delete snapshot?</AlertDialogTitle>
<AlertDialogDescription>
This action cannot be undone. This will permanently delete the snapshot and all its data from the
repository.
This action cannot be undone. This will permanently delete the snapshot and all its data
from the repository.
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>