From ce06cd42b335ad12d4f013520d22392c06079a94 Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen Date: Tue, 21 Jan 2025 23:41:05 +1100 Subject: [PATCH] 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 9575c59c4..c84ed5940 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} + +
+ )}