diff --git a/src/lib/layout/containerHeader.svelte b/src/lib/layout/containerHeader.svelte index 3805cfc80..3ca83f26b 100644 --- a/src/lib/layout/containerHeader.svelte +++ b/src/lib/layout/containerHeader.svelte @@ -83,10 +83,10 @@ You've reached the {title.toLowerCase()} limit for the {tier} plan. - {#if tier !== 'Scale'} + + {#if $organization?.billingPlan === 'tier-0'} + for additional {title.toLocaleLowerCase()}. {/if} @@ -120,7 +120,7 @@

Your are limited to {limit} {title.toLocaleLowerCase()} per project on the {tier} plan. - {#if tier !== 'Scale'} @@ -138,7 +138,10 @@ {#if buttonText}

- for additional storage. + {#if tier === 'Starter'} + + for additional storage. + {/if} {/if} diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte index a5d416066..38fc3f811 100644 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte +++ b/src/routes/console/project-[project]/storage/bucket-[bucket]/settings/updateMaxFileSize.svelte @@ -4,7 +4,7 @@ import { Button, Form, FormItem, InputNumber, InputSelect } from '$lib/elements/forms'; import { humanFileSize, sizeToBytes } from '$lib/helpers/sizeConvertion'; import { createByteUnitPair } from '$lib/helpers/unit'; - import { getServiceLimit, readOnly } from '$lib/stores/billing'; + import { getServiceLimit, readOnly, tierToPlan } from '$lib/stores/billing'; import { organization } from '$lib/stores/organization'; import { wizard } from '$lib/stores/wizard'; import { isCloud } from '$lib/system'; @@ -35,11 +35,12 @@ Maximum file size

Set the maximum file size allowed in the bucket.

- {#if isCloud && $organization?.billingPlan === 'tier-0'} + {#if isCloud} {@const size = humanFileSize(sizeToBytes(service, 'MB', 1000))} + {@const plan = tierToPlan($organization?.billingPlan)}

- The Starter plan has a maximum upload file size limit of {size.value}{size.unit}. + The {plan.name} plan has a maximum upload file size limit of {size.value}{size.unit}. Upgrade to allow files of a larger size.

diff --git a/src/routes/console/wizard/cloudOrganization/usageRates.svelte b/src/routes/console/wizard/cloudOrganization/usageRates.svelte index cc3fc7c6a..34a4b626b 100644 --- a/src/routes/console/wizard/cloudOrganization/usageRates.svelte +++ b/src/routes/console/wizard/cloudOrganization/usageRates.svelte @@ -57,10 +57,15 @@ Usage on the Starter plan is limited for the following resources. Next billing period: {toLocaleDate( nextDate )}. - {:else} + {:else if tier === 'tier-1'}

- Usage on the Pro plan and Scale plan will be charged at the end of each billing period - at the following rates. Next billing period: {toLocaleDate(nextDate)}. + Usage on the Pro plan will be charged at the end of each billing period at the following + rates. Next billing period: {toLocaleDate(nextDate)}. +

+ {:else if tier === 'tier-2'} +

+ Usage on the Scale plan will be charged at the end of each billing period at the + following rates. Next billing period: {toLocaleDate(nextDate)}.

{/if}