fix(backups): preserve retry settings when toggling schedules (#896)

This commit is contained in:
Nico 2026-05-19 20:08:05 +02:00 committed by GitHub
parent 94f6d0529f
commit 3b9f2086ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>