mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-07 03:27:29 +02:00
✨ Handle enterprise license with unlimited seats (#1753)
This commit is contained in:
parent
463d1d3882
commit
c7af881f2d
2 changed files with 12 additions and 10 deletions
|
@ -77,6 +77,7 @@ export default async function LicensePage() {
|
||||||
</DescriptionListTitle>
|
</DescriptionListTitle>
|
||||||
<DescriptionListValue>
|
<DescriptionListValue>
|
||||||
<span className="text-primary capitalize">{license.type}</span>
|
<span className="text-primary capitalize">{license.type}</span>
|
||||||
|
{license.seats ? (
|
||||||
<span className="ml-2 text-muted-foreground">
|
<span className="ml-2 text-muted-foreground">
|
||||||
(
|
(
|
||||||
<Trans
|
<Trans
|
||||||
|
@ -86,6 +87,7 @@ export default async function LicensePage() {
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
</span>
|
</span>
|
||||||
|
) : null}
|
||||||
</DescriptionListValue>
|
</DescriptionListValue>
|
||||||
<DescriptionListTitle>
|
<DescriptionListTitle>
|
||||||
<Trans i18nKey="licenseKey" defaults="License Key" />
|
<Trans i18nKey="licenseKey" defaults="License Key" />
|
||||||
|
|
|
@ -16,7 +16,7 @@ export async function LicenseLimitWarning() {
|
||||||
|
|
||||||
const userLimit = license?.seats ?? 1;
|
const userLimit = license?.seats ?? 1;
|
||||||
|
|
||||||
if (!userLimit || userCount <= userLimit) {
|
if (license?.type === "ENTERPRISE" || userCount <= userLimit) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue