diff --git a/apps/dokploy/components/dashboard/settings/certificates/handle-certificate.tsx b/apps/dokploy/components/dashboard/settings/certificates/handle-certificate.tsx index ff48d13fd..861822a91 100644 --- a/apps/dokploy/components/dashboard/settings/certificates/handle-certificate.tsx +++ b/apps/dokploy/components/dashboard/settings/certificates/handle-certificate.tsx @@ -6,7 +6,6 @@ import { toast } from "sonner"; import { z } from "zod"; import { AlertBlock } from "@/components/shared/alert-block"; import { Button } from "@/components/ui/button"; -import { Checkbox } from "@/components/ui/checkbox"; import { Dialog, DialogContent, @@ -52,7 +51,6 @@ const handleCertificateSchema = z.object({ name: z.string().min(1, "Name is required"), certificateData: z.string().min(1, "Certificate data is required"), privateKey: z.string().min(1, "Private key is required"), - autoRenew: z.boolean().optional(), serverId: z.string().optional(), }); @@ -86,7 +84,6 @@ export const HandleCertificate = ({ certificateId }: Props) => { name: "", certificateData: "", privateKey: "", - autoRenew: false, }, resolver: zodResolver(handleCertificateSchema), }); @@ -97,14 +94,12 @@ export const HandleCertificate = ({ certificateId }: Props) => { name: existingCert.name, certificateData: existingCert.certificateData, privateKey: existingCert.privateKey, - autoRenew: existingCert.autoRenew ?? false, }); } else { form.reset({ name: "", certificateData: "", privateKey: "", - autoRenew: false, }); } }, [existingCert, form, open]); @@ -114,7 +109,6 @@ export const HandleCertificate = ({ certificateId }: Props) => { name: data.name, certificateData: data.certificateData, privateKey: data.privateKey, - autoRenew: data.autoRenew, }; const promise = certificateId @@ -232,22 +226,6 @@ export const HandleCertificate = ({ certificateId }: Props) => { )} /> - ( - - - - - Auto-renew - - - )} - /> {shouldShowServerDropdown && ( { const updated = await db