add translation and update url

This commit is contained in:
miloschwartz
2025-10-15 17:32:39 -07:00
parent aebe6b80b7
commit edc0b86470
2 changed files with 8 additions and 5 deletions

View File

@@ -1893,5 +1893,6 @@
"pathRewriteExact": "Exact",
"pathRewriteRegex": "Regex",
"pathRewriteStrip": "Strip",
"pathRewriteStripLabel": "strip"
"pathRewriteStripLabel": "strip",
"sidebarEnableEnterpriseLicense": "Enable Enterprise License"
}

View File

@@ -21,6 +21,8 @@ export default function SidebarLicenseButton({
}: SidebarLicenseButtonProps) {
const { licenseStatus, updateLicenseStatus } = useLicenseStatusContext();
const url = "https://docs.digpangolin.com/self-host/enterprise-edition";
const t = useTranslations();
return (
@@ -30,21 +32,21 @@ export default function SidebarLicenseButton({
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Link href="https://docs.digpangolin.com/">
<Link href={url}>
<Button size="icon" className="w-8 h-8">
<TicketCheck className="h-4 w-4" />
</Button>
</Link>
</TooltipTrigger>
<TooltipContent side="right" sideOffset={8}>
Enable Enterprise License
{t("sidebarEnableEnterpriseLicense")}
</TooltipContent>
</Tooltip>
</TooltipProvider>
) : (
<Link href="https://docs.digpangolin.com/">
<Link href={url}>
<Button size="sm" className="gap-2 w-full">
Enable Enterprise License
{t("sidebarEnableEnterpriseLicense")}
</Button>
</Link>
)