From ce06cd42b335ad12d4f013520d22392c06079a94 Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen Date: Tue, 21 Jan 2025 23:41:05 +1100 Subject: [PATCH 1/2] fix(ui): show filePath instead of mountPath for file mounts --- .../advanced/volumes/show-volumes.tsx | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx b/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx index 9575c59c..c84ed594 100644 --- a/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx @@ -98,12 +98,20 @@ export const ShowVolumes = ({ id, type }: Props) => { )} {mount.type === "file" && ( -
- Content - - {mount.content} - -
+ <> +
+ Content + + {mount.content} + +
+
+ File Path + + {mount.filePath} + +
+ )} {mount.type === "bind" && (
@@ -113,12 +121,14 @@ export const ShowVolumes = ({ id, type }: Props) => {
)} -
- Mount Path - - {mount.mountPath} - -
+ {mount.type !== "file" && ( +
+ Mount Path + + {mount.mountPath} + +
+ )}
Date: Tue, 21 Jan 2025 23:45:54 +1100 Subject: [PATCH 2/2] refactor(ui): clearer ui display condition for volume mount display --- .../advanced/volumes/show-volumes.tsx | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx b/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx index c84ed594..bbfe4fa6 100644 --- a/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx +++ b/apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx @@ -98,20 +98,12 @@ export const ShowVolumes = ({ id, type }: Props) => { )} {mount.type === "file" && ( - <> -
- Content - - {mount.content} - -
-
- File Path - - {mount.filePath} - -
- +
+ Content + + {mount.content} + +
)} {mount.type === "bind" && (
@@ -121,7 +113,14 @@ export const ShowVolumes = ({ id, type }: Props) => {
)} - {mount.type !== "file" && ( + {mount.type === "file" ? ( +
+ File Path + + {mount.filePath} + +
+ ) : (
Mount Path