Merge pull request #1160 from nktnet1/fix-invisible-mount-path

fix(ui): volume mountPath undefined for file mount - meant to display filePath instead?
This commit is contained in:
Mauricio Siu
2025-01-21 21:50:33 -06:00
committed by GitHub

View File

@@ -113,12 +113,21 @@ export const ShowVolumes = ({ id, type }: Props) => {
</span> </span>
</div> </div>
)} )}
<div className="flex flex-col gap-1"> {mount.type === "file" ? (
<span className="font-medium">Mount Path</span> <div className="flex flex-col gap-1">
<span className="text-sm text-muted-foreground"> <span className="font-medium">File Path</span>
{mount.mountPath} <span className="text-sm text-muted-foreground">
</span> {mount.filePath}
</div> </span>
</div>
) : (
<div className="flex flex-col gap-1">
<span className="font-medium">Mount Path</span>
<span className="text-sm text-muted-foreground">
{mount.mountPath}
</span>
</div>
)}
</div> </div>
<div className="flex flex-row gap-1"> <div className="flex flex-row gap-1">
<UpdateVolume <UpdateVolume