Set correct constant for new tier-3

This commit is contained in:
ernstmul committed 2024-10-03 14:07:19 +02:00
1 parent 848c1dfa9f
commit bad56508e8
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -467,7 +467,8 @@ export const eventServices: Array<EventService> = [
export enum BillingPlan {
FREE = 'tier-0',
PRO = 'tier-1',
SCALE = 'tier-2'
SCALE = 'tier-2',
GITHUB_EDUCATION = 'tier-3'
}
export const feedbackDowngradeOptions = [
+1 -1
View File
@@ -34,7 +34,7 @@ import { user } from './user';
import { browser } from '$app/environment';
import { canSeeBilling } from './roles';
export type Tier = 'tier-0' | 'tier-1' | 'tier-2';
export type Tier = 'tier-0' | 'tier-1' | 'tier-2' | 'tier-3';
export const roles = [
{
@@ -110,7 +110,8 @@
<span class="u-trim">
{$organization.name}
</span>
{#if isCloud && true}
<!-- TODO: remove true check below when API change, https://github.com/appwrite-labs/cloud/pull/816, has been merged and deployed -->
{#if isCloud && (true || $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION)}
<Pill class="eyebrow-heading-3"
><span class="icon-github" aria-hidden="true" /> EDUCATION</Pill>
{:else if isCloud && $organization?.billingPlan === BillingPlan.FREE}