1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

- Avoid BUSINESS plan usage in string literals.

- Change PREMIUM_PLUS by PREMIUM
- Change ENTERPRISE_BASIC by ENTERPRISE
This commit is contained in:
jvcalderon 2023-12-18 09:36:11 +01:00
parent 159a8c0e96
commit e46140cb3a
4 changed files with 12 additions and 4 deletions

View file

@ -257,7 +257,7 @@
<LockedFeature
title={"Audit Logs"}
planType={"Business plan"}
planType={"Enterprise plan"}
description={"View all events that have occurred in your Budibase installation"}
enabled={$licensing.auditLogsEnabled}
upgradeButtonClick={async () => {

View file

@ -15,6 +15,7 @@
import { DashCard, Usage } from "components/usage"
import { PlanModel } from "constants"
import { sdk } from "@budibase/shared-core"
import { PlanType } from "@budibase/types"
let staticUsage = []
let monthlyUsage = []
@ -106,7 +107,14 @@
}
const planTitle = () => {
return `${capitalise(license?.plan.type)} Plan`
const planType = license?.plan.type
let planName = license?.plan.type
if (planType === PlanType.PREMIUM_PLUS) {
planName = "Premium"
} else if (planType === PlanType.ENTERPRISE_BASIC) {
planName = "Enterprise"
}
return `${capitalise(planName)} Plan`
}
const getDaysRemaining = timestamp => {

View file

@ -283,7 +283,7 @@
</div>
{#if !$licensing.enforceableSSO}
<Tags>
<Tag icon="LockClosed">Enterprise</Tag>
<Tag icon="LockClosed">Enterprise plan</Tag>
</Tags>
{/if}
</div>

View file

@ -59,7 +59,7 @@
<LockedFeature
title={"Environment Variables"}
planType={"Business plan"}
planType={"Enterprise plan"}
description={"Add and manage environment variables for development and production"}
enabled={$licensing.environmentVariablesEnabled}
upgradeButtonClick={async () => {