From c7338983b883681774ce780daa43cb5fe109dcc3 Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen Date: Tue, 21 Jan 2025 23:45:54 +1100 Subject: [PATCH] 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