From 0755f2830735c0866c8d01d03d18b66537240fb5 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 3 Aug 2025 16:45:07 -0600 Subject: [PATCH] refactor(cluster-settings): update dialog content and improve layout in swarm settings component --- .../cluster/modify-swarm-settings.tsx | 26 +++++++++---------- .../cluster/show-cluster-settings.tsx | 4 +-- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx index 591823702..9e10f43ec 100644 --- a/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/cluster/modify-swarm-settings.tsx @@ -292,7 +292,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { Swarm Settings - + Swarm Settings @@ -300,10 +300,10 @@ export const AddSwarmSettings = ({ id, type }: Props) => { {isError && {error?.message}} -
+
- Changing settings such as placements may cause the logs/monitoring - to be unavailable. + Changing settings such as placements may cause the logs/monitoring, + backups and other features to be unavailable.
@@ -311,13 +311,13 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
( - + Health Check @@ -373,7 +373,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="restartPolicySwarm" render={({ field }) => ( - + Restart Policy @@ -427,7 +427,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="placementSwarm" render={({ field }) => ( - + Placement @@ -493,7 +493,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="updateConfigSwarm" render={({ field }) => ( - + Update Config @@ -551,7 +551,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="rollbackConfigSwarm" render={({ field }) => ( - + Rollback Config @@ -609,7 +609,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="modeSwarm" render={({ field }) => ( - + Mode @@ -672,7 +672,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="networkSwarm" render={({ field }) => ( - + Network @@ -731,7 +731,7 @@ export const AddSwarmSettings = ({ id, type }: Props) => { control={form.control} name="labelsSwarm" render={({ field }) => ( - + Labels diff --git a/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx b/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx index 247fd3ebf..a3bc8079a 100644 --- a/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/cluster/show-cluster-settings.tsx @@ -102,8 +102,6 @@ export const ShowClusterSettings = ({ id, type }: Props) => { } }, [form, form.reset, form.formState.isSubmitSuccessful, data?.command]); - console.log(form.formState.errors); - const onSubmit = async (data: AddCommand) => { await mutateAsync({ applicationId: id || "", @@ -137,7 +135,7 @@ export const ShowClusterSettings = ({ id, type }: Props) => {
Cluster Settings - Add the registry and the replicas of the application + Modify swarm settings for the service.