From bad56508e8dadda1a89b16471441b18e877365ca Mon Sep 17 00:00:00 2001 From: ernstmul Date: Thu, 3 Oct 2024 14:07:19 +0200 Subject: [PATCH] Set correct constant for new tier-3 --- src/lib/constants.ts | 3 ++- src/lib/stores/billing.ts | 2 +- src/routes/(console)/organization-[organization]/header.svelte | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 02d7a2768..f016c6daf 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -467,7 +467,8 @@ export const eventServices: Array = [ export enum BillingPlan { FREE = 'tier-0', PRO = 'tier-1', - SCALE = 'tier-2' + SCALE = 'tier-2', + GITHUB_EDUCATION = 'tier-3' } export const feedbackDowngradeOptions = [ diff --git a/src/lib/stores/billing.ts b/src/lib/stores/billing.ts index 21611761f..85fa408a0 100644 --- a/src/lib/stores/billing.ts +++ b/src/lib/stores/billing.ts @@ -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 = [ { diff --git a/src/routes/(console)/organization-[organization]/header.svelte b/src/routes/(console)/organization-[organization]/header.svelte index 25566070a..247c1e5e9 100644 --- a/src/routes/(console)/organization-[organization]/header.svelte +++ b/src/routes/(console)/organization-[organization]/header.svelte @@ -110,7 +110,8 @@ {$organization.name} - {#if isCloud && true} + + {#if isCloud && (true || $organization?.billingPlan === BillingPlan.GITHUB_EDUCATION)} {:else if isCloud && $organization?.billingPlan === BillingPlan.FREE}