diff --git a/apps/dokploy/components/dashboard/settings/servers/actions/show-traefik-actions.tsx b/apps/dokploy/components/dashboard/settings/servers/actions/show-traefik-actions.tsx index 36761973c..5b4d751ff 100644 --- a/apps/dokploy/components/dashboard/settings/servers/actions/show-traefik-actions.tsx +++ b/apps/dokploy/components/dashboard/settings/servers/actions/show-traefik-actions.tsx @@ -39,12 +39,22 @@ export const ShowTraefikActions = ({ serverId }: Props) => { isExecuting: isHealthCheckExecuting, } = useHealthCheckAfterMutation({ initialDelay: 5000, + pollInterval: 4000, successMessage: "Traefik dashboard updated successfully", onSuccess: () => { refetchDashboard(); }, }); + const { + execute: executeReloadWithHealthCheck, + isExecuting: isReloadHealthCheckExecuting, + } = useHealthCheckAfterMutation({ + initialDelay: 5000, + pollInterval: 4000, + successMessage: "Traefik Reloaded", + }); + return ( { disabled={ reloadTraefikIsLoading || toggleDashboardIsLoading || - isHealthCheckExecuting + isHealthCheckExecuting || + isReloadHealthCheckExecuting } >