diff --git a/app/client/api-client/types.gen.ts b/app/client/api-client/types.gen.ts index b9aa2748..3d7be795 100644 --- a/app/client/api-client/types.gen.ts +++ b/app/client/api-client/types.gen.ts @@ -2434,6 +2434,8 @@ export type ListBackupSchedulesResponses = { includePatterns: Array | null; oneFileSystem: boolean; customResticParams: Array | null; + maxRetries: number; + retryDelay: number; lastBackupAt: number | null; lastBackupStatus: 'success' | 'error' | 'in_progress' | 'warning' | null; lastBackupError: string | null; @@ -2710,6 +2712,8 @@ export type CreateBackupScheduleData = { oneFileSystem?: boolean; tags?: Array; customResticParams?: Array; + maxRetries?: number; + retryDelay?: number; }; path?: never; query?: never; @@ -2743,6 +2747,8 @@ export type CreateBackupScheduleResponses = { includePatterns: Array | null; oneFileSystem: boolean; customResticParams: Array | null; + maxRetries: number; + retryDelay: number; lastBackupAt: number | null; lastBackupStatus: 'success' | 'error' | 'in_progress' | 'warning' | null; lastBackupError: string | null; @@ -2810,6 +2816,8 @@ export type GetBackupScheduleResponses = { includePatterns: Array | null; oneFileSystem: boolean; customResticParams: Array | null; + maxRetries: number; + retryDelay: number; lastBackupAt: number | null; lastBackupStatus: 'success' | 'error' | 'in_progress' | 'warning' | null; lastBackupError: string | null; @@ -3085,6 +3093,8 @@ export type UpdateBackupScheduleData = { oneFileSystem?: boolean; tags?: Array; customResticParams?: Array; + maxRetries?: number; + retryDelay?: number; }; path: { shortId: string; @@ -3120,6 +3130,8 @@ export type UpdateBackupScheduleResponses = { includePatterns: Array | null; oneFileSystem: boolean; customResticParams: Array | null; + maxRetries: number; + retryDelay: number; lastBackupAt: number | null; lastBackupStatus: 'success' | 'error' | 'in_progress' | 'warning' | null; lastBackupError: string | null; @@ -3167,6 +3179,8 @@ export type GetBackupScheduleForVolumeResponses = { includePatterns: Array | null; oneFileSystem: boolean; customResticParams: Array | null; + maxRetries: number; + retryDelay: number; lastBackupAt: number | null; lastBackupStatus: 'success' | 'error' | 'in_progress' | 'warning' | null; lastBackupError: string | null; diff --git a/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx b/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx index 72d3f831..a6d865a3 100644 --- a/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx +++ b/app/client/modules/backups/components/create-schedule-form/advanced-section.tsx @@ -2,6 +2,7 @@ import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessa import { Textarea } from "~/client/components/ui/textarea"; import type { UseFormReturn } from "react-hook-form"; import type { InternalFormValues } from "./types"; +import { Input } from "~/client/components/ui/input"; type AdvancedSectionProps = { form: UseFormReturn; @@ -9,27 +10,74 @@ type AdvancedSectionProps = { export const AdvancedSection = ({ form }: AdvancedSectionProps) => { return ( - ( - - Custom restic parameters - -