mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 10:16:41 +00:00
add translation and update url
This commit is contained in:
@@ -1893,5 +1893,6 @@
|
|||||||
"pathRewriteExact": "Exact",
|
"pathRewriteExact": "Exact",
|
||||||
"pathRewriteRegex": "Regex",
|
"pathRewriteRegex": "Regex",
|
||||||
"pathRewriteStrip": "Strip",
|
"pathRewriteStrip": "Strip",
|
||||||
"pathRewriteStripLabel": "strip"
|
"pathRewriteStripLabel": "strip",
|
||||||
|
"sidebarEnableEnterpriseLicense": "Enable Enterprise License"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user