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