Skip to content

Commit

Permalink
refactor: add settings page to user nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Jan 19, 2025
1 parent 0045608 commit b166cd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions apps/dokploy/components/layouts/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,17 @@ export const UserNav = () => {
Servers
</DropdownMenuItem>
)}

{data?.rol === "admin" && (
<DropdownMenuItem
className="cursor-pointer"
onClick={() => {
router.push("/dashboard/settings");
}}
>
Settings
</DropdownMenuItem>
)}
</>
)}
</DropdownMenuGroup>
Expand Down
2 changes: 1 addition & 1 deletion apps/dokploy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dokploy",
"version": "v0.17.3",
"version": "v0.17.4",
"private": true,
"license": "Apache-2.0",
"type": "module",
Expand Down

0 comments on commit b166cd5

Please sign in to comment.