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", "pathRewriteExact": "Exact",
"pathRewriteRegex": "Regex", "pathRewriteRegex": "Regex",
"pathRewriteStrip": "Strip", "pathRewriteStrip": "Strip",
"pathRewriteStripLabel": "strip" "pathRewriteStripLabel": "strip",
"sidebarEnableEnterpriseLicense": "Enable Enterprise License"
} }

View File

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