Skip to content

Commit 4dcf6cf

Browse files
committed
refactor(volume-backups): comment out keepLatestCount field and related logic
- Commented out the keepLatestCount field in the form schema and its usage in the HandleVolumeBackups component. - Updated related form field rendering to prevent rendering of the keepLatestCount input.
1 parent 7356d71 commit 4dcf6cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/dokploy/components/dashboard/application/volume-backups/handle-volume-backups.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const formSchema = z
5555
cronExpression: z.string().min(1, "Cron expression is required"),
5656
volumeName: z.string().min(1, "Volume name is required"),
5757
prefix: z.string(),
58-
keepLatestCount: z.coerce.number().optional(),
58+
// keepLatestCount: z.coerce.number().optional(),
5959
turnOff: z.boolean().default(false),
6060
enabled: z.boolean().default(true),
6161
serviceType: z.enum([
@@ -117,7 +117,7 @@ export const HandleVolumeBackups = ({
117117
cronExpression: "",
118118
volumeName: "",
119119
prefix: "",
120-
keepLatestCount: undefined,
120+
// keepLatestCount: undefined,
121121
turnOff: false,
122122
enabled: true,
123123
serviceName: "",
@@ -173,7 +173,7 @@ export const HandleVolumeBackups = ({
173173
cronExpression: volumeBackup.cronExpression,
174174
volumeName: volumeBackup.volumeName || "",
175175
prefix: volumeBackup.prefix,
176-
keepLatestCount: volumeBackup.keepLatestCount || undefined,
176+
// keepLatestCount: volumeBackup.keepLatestCount || undefined,
177177
turnOff: volumeBackup.turnOff,
178178
enabled: volumeBackup.enabled || false,
179179
serviceName: volumeBackup.serviceName || "",
@@ -600,7 +600,7 @@ export const HandleVolumeBackups = ({
600600
)}
601601
/>
602602

603-
<FormField
603+
{/* <FormField
604604
control={form.control}
605605
name="keepLatestCount"
606606
render={({ field }) => (
@@ -622,7 +622,7 @@ export const HandleVolumeBackups = ({
622622
<FormMessage />
623623
</FormItem>
624624
)}
625-
/>
625+
/> */}
626626

627627
<FormField
628628
control={form.control}

0 commit comments

Comments
 (0)