fix(backups): preserve retry settings when toggling schedules (#896)
This commit is contained in:
parent
94f6d0529f
commit
3b9f2086ee
1 changed files with 8 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue