diff --git a/apps/dokploy/components/dashboard/settings/cluster/nodes/manager/add-manager.tsx b/apps/dokploy/components/dashboard/settings/cluster/nodes/manager/add-manager.tsx
index 6cb8f257..bb2064d4 100644
--- a/apps/dokploy/components/dashboard/settings/cluster/nodes/manager/add-manager.tsx
+++ b/apps/dokploy/components/dashboard/settings/cluster/nodes/manager/add-manager.tsx
@@ -1,3 +1,4 @@
+import { AlertBlock } from "@/components/shared/alert-block";
import { CardContent } from "@/components/ui/card";
import {
DialogDescription,
@@ -14,7 +15,9 @@ interface Props {
}
export const AddManager = ({ serverId }: Props) => {
- const { data, isLoading } = api.cluster.addManager.useQuery({ serverId });
+ const { data, isLoading, error, isError } = api.cluster.addManager.useQuery({
+ serverId,
+ });
return (
<>
@@ -23,6 +26,7 @@ export const AddManager = ({ serverId }: Props) => {
Add a new manager
Add a new manager
+ {isError && {error?.message}}
{isLoading ? (
) : (
diff --git a/apps/dokploy/components/dashboard/settings/cluster/nodes/workers/add-worker.tsx b/apps/dokploy/components/dashboard/settings/cluster/nodes/workers/add-worker.tsx
index 3dec559e..2623081b 100644
--- a/apps/dokploy/components/dashboard/settings/cluster/nodes/workers/add-worker.tsx
+++ b/apps/dokploy/components/dashboard/settings/cluster/nodes/workers/add-worker.tsx
@@ -1,3 +1,4 @@
+import { AlertBlock } from "@/components/shared/alert-block";
import { CardContent } from "@/components/ui/card";
import {
DialogDescription,
@@ -14,7 +15,9 @@ interface Props {
}
export const AddWorker = ({ serverId }: Props) => {
- const { data, isLoading } = api.cluster.addWorker.useQuery({ serverId });
+ const { data, isLoading, error, isError } = api.cluster.addWorker.useQuery({
+ serverId,
+ });
return (
@@ -22,6 +25,7 @@ export const AddWorker = ({ serverId }: Props) => {
Add a new worker
Add a new worker
+ {isError && {error?.message}}
{isLoading ? (
) : (