diff --git a/apps/dokploy/components/layouts/side.tsx b/apps/dokploy/components/layouts/side.tsx index 30739e3fb..6763898e8 100644 --- a/apps/dokploy/components/layouts/side.tsx +++ b/apps/dokploy/components/layouts/side.tsx @@ -41,6 +41,7 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; import { useEffect, useState } from "react"; import { toast } from "sonner"; +import { Badge } from "@/components/ui/badge"; import { Breadcrumb, BreadcrumbItem, @@ -564,6 +565,8 @@ function SidebarLogo() { const { isMobile } = useSidebar(); const isCollapsed = state === "collapsed" && !isMobile; const { data: activeOrganization } = api.organization.active.useQuery(); + const { data: haveValidLicense } = + api.licenseKey.haveValidLicenseKey.useQuery(); const { data: invitations, refetch: refetchInvitations } = api.user.getInvitations.useQuery(); @@ -629,9 +632,14 @@ function SidebarLogo() { isCollapsed && "hidden", )} > -

- {activeOrganization?.name ?? "Select Organization"} -

+
+

+ {activeOrganization?.name ?? "Select Organization"} +

+ {haveValidLicense && ( + Enterprise + )} +