Skip to content

Commit 0fde5a7

Browse files
authored
Merge pull request #1168 from Dokploy/canary
🚀 Release v0.17.6
2 parents c91f5df + 81248ed commit 0fde5a7

File tree

14 files changed

+681
-343
lines changed

14 files changed

+681
-343
lines changed

apps/dokploy/components/dashboard/application/advanced/volumes/show-volumes.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const ShowVolumes = ({ id, type }: Props) => {
100100
{mount.type === "file" && (
101101
<div className="flex flex-col gap-1">
102102
<span className="font-medium">Content</span>
103-
<span className="text-sm text-muted-foreground">
103+
<span className="text-sm text-muted-foreground line-clamp-[10] whitespace-break-spaces">
104104
{mount.content}
105105
</span>
106106
</div>
@@ -113,12 +113,21 @@ export const ShowVolumes = ({ id, type }: Props) => {
113113
</span>
114114
</div>
115115
)}
116-
<div className="flex flex-col gap-1">
117-
<span className="font-medium">Mount Path</span>
118-
<span className="text-sm text-muted-foreground">
119-
{mount.mountPath}
120-
</span>
121-
</div>
116+
{mount.type === "file" ? (
117+
<div className="flex flex-col gap-1">
118+
<span className="font-medium">File Path</span>
119+
<span className="text-sm text-muted-foreground">
120+
{mount.filePath}
121+
</span>
122+
</div>
123+
) : (
124+
<div className="flex flex-col gap-1">
125+
<span className="font-medium">Mount Path</span>
126+
<span className="text-sm text-muted-foreground">
127+
{mount.mountPath}
128+
</span>
129+
</div>
130+
)}
122131
</div>
123132
<div className="flex flex-row gap-1">
124133
<UpdateVolume

apps/dokploy/components/dashboard/projects/handle-project.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const HandleProject = ({ projectId }: Props) => {
118118
</DialogTrigger>
119119
<DialogContent className="sm:m:max-w-lg ">
120120
<DialogHeader>
121-
<DialogTitle>Add a project</DialogTitle>
121+
<DialogTitle>{projectId ? "Update" : "Add a"} project</DialogTitle>
122122
<DialogDescription>The home of something big!</DialogDescription>
123123
</DialogHeader>
124124
{isError && <AlertBlock type="error">{error?.message}</AlertBlock>}

apps/dokploy/components/dashboard/projects/show.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ export const ShowProjects = () => {
8787
Create and manage your projects
8888
</CardDescription>
8989
</CardHeader>
90-
<div className="">
91-
<HandleProject />
92-
</div>
90+
91+
{(auth?.rol === "admin" || user?.canCreateProjects) && (
92+
<div className="">
93+
<HandleProject />
94+
</div>
95+
)}
9396
</div>
9497

9598
<CardContent className="space-y-2 py-8 border-t gap-4 flex flex-col min-h-[60vh]">

0 commit comments

Comments
 (0)