diff --git a/apps/dokploy/components/dashboard/application/domains/generate-wildcard.tsx b/apps/dokploy/components/dashboard/application/domains/generate-wildcard.tsx deleted file mode 100644 index da444552..00000000 --- a/apps/dokploy/components/dashboard/application/domains/generate-wildcard.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { - AlertDialog, - AlertDialogAction, - AlertDialogCancel, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, - AlertDialogTrigger, -} from "@/components/ui/alert-dialog"; -import { Button } from "@/components/ui/button"; -import { api } from "@/utils/api"; -import { SquareAsterisk } from "lucide-react"; -import React from "react"; -import { toast } from "sonner"; - -interface Props { - applicationId: string; -} -export const GenerateWildCard = ({ applicationId }: Props) => { - const { mutateAsync, isLoading } = api.domain.generateWildcard.useMutation(); - const utils = api.useUtils(); - return ( - - - - - - - - Are you sure to generate a new wildcard domain? - - - This will generate a new domain and will be used to access to the - application - - - - Cancel - { - await mutateAsync({ - applicationId, - }) - .then((data) => { - utils.domain.byApplicationId.invalidate({ - applicationId: applicationId, - }); - utils.application.readTraefikConfig.invalidate({ - applicationId: applicationId, - }); - toast.success("Generated Domain succesfully"); - }) - .catch((e) => { - toast.error(`Error to generate Domain: ${e.message}`); - }); - }} - > - Confirm - - - - - ); -}; diff --git a/apps/dokploy/components/dashboard/compose/domains/generate-wildcard.tsx b/apps/dokploy/components/dashboard/compose/domains/generate-wildcard.tsx deleted file mode 100644 index da444552..00000000 --- a/apps/dokploy/components/dashboard/compose/domains/generate-wildcard.tsx +++ /dev/null @@ -1,69 +0,0 @@ -import { - AlertDialog, - AlertDialogAction, - AlertDialogCancel, - AlertDialogContent, - AlertDialogDescription, - AlertDialogFooter, - AlertDialogHeader, - AlertDialogTitle, - AlertDialogTrigger, -} from "@/components/ui/alert-dialog"; -import { Button } from "@/components/ui/button"; -import { api } from "@/utils/api"; -import { SquareAsterisk } from "lucide-react"; -import React from "react"; -import { toast } from "sonner"; - -interface Props { - applicationId: string; -} -export const GenerateWildCard = ({ applicationId }: Props) => { - const { mutateAsync, isLoading } = api.domain.generateWildcard.useMutation(); - const utils = api.useUtils(); - return ( - - - - - - - - Are you sure to generate a new wildcard domain? - - - This will generate a new domain and will be used to access to the - application - - - - Cancel - { - await mutateAsync({ - applicationId, - }) - .then((data) => { - utils.domain.byApplicationId.invalidate({ - applicationId: applicationId, - }); - utils.application.readTraefikConfig.invalidate({ - applicationId: applicationId, - }); - toast.success("Generated Domain succesfully"); - }) - .catch((e) => { - toast.error(`Error to generate Domain: ${e.message}`); - }); - }} - > - Confirm - - - - - ); -};