diff --git a/apps/dokploy/components/dashboard/application/advanced/traefik/show-traefik-config.tsx b/apps/dokploy/components/dashboard/application/advanced/traefik/show-traefik-config.tsx index 28d44264..bf5fd4f6 100644 --- a/apps/dokploy/components/dashboard/application/advanced/traefik/show-traefik-config.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/traefik/show-traefik-config.tsx @@ -46,6 +46,7 @@ export const ShowTraefikConfig = ({ applicationId }: Props) => {
{ Traefik config { { const [query, setQuery] = useState(""); + const [open, setOpen] = useState(false); const { data } = api.compose.templates.useQuery(); const [selectedTags, setSelectedTags] = useState([]); const { data: tags, isLoading: isLoadingTags } = @@ -75,7 +76,7 @@ export const AddTemplate = ({ projectId }: Props) => { }) || []; return ( - + { utils.project.one.invalidate({ projectId, }); + setOpen(false); }) .catch(() => { toast.error( diff --git a/apps/dokploy/components/dashboard/settings/web-server/show-main-traefik-config.tsx b/apps/dokploy/components/dashboard/settings/web-server/show-main-traefik-config.tsx index e6e4866e..becda3ad 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/show-main-traefik-config.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/show-main-traefik-config.tsx @@ -106,6 +106,7 @@ export const ShowMainTraefikConfig = ({ children }: Props) => { Traefik config { Traefik config