From 5833ed459b43476c8278cd2798dd2d4c8ef7ac24 Mon Sep 17 00:00:00 2001 From: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com> Date: Mon, 4 Aug 2025 15:27:29 +0100 Subject: [PATCH] Remove the discount Badge (#15769) --- .../change-plan-dialog.component.html | 20 +------------------ .../change-plan-dialog.component.ts | 1 - .../shared/plan-card/plan-card.component.html | 4 ---- .../shared/plan-card/plan-card.component.ts | 1 - 4 files changed, 1 insertion(+), 25 deletions(-) diff --git a/apps/web/src/app/billing/organizations/change-plan-dialog.component.html b/apps/web/src/app/billing/organizations/change-plan-dialog.component.html index 91e2e83a92c..ace3d749a3f 100644 --- a/apps/web/src/app/billing/organizations/change-plan-dialog.component.html +++ b/apps/web/src/app/billing/organizations/change-plan-dialog.component.html @@ -11,24 +11,6 @@ }}
- {{ - "upgradeDiscount" - | i18n - : (selectedInterval === planIntervals.Annually && discountPercentageFromSub == 0 - ? this.discountPercentage - : this.discountPercentageFromSub) - }}
diff --git a/apps/web/src/app/billing/organizations/change-plan-dialog.component.ts b/apps/web/src/app/billing/organizations/change-plan-dialog.component.ts index 6420e8ae457..129d8e1de48 100644 --- a/apps/web/src/app/billing/organizations/change-plan-dialog.component.ts +++ b/apps/web/src/app/billing/organizations/change-plan-dialog.component.ts @@ -150,7 +150,6 @@ export class ChangePlanDialogComponent implements OnInit, OnDestroy { @Output() onCanceled = new EventEmitter(); @Output() onTrialBillingSuccess = new EventEmitter(); - protected discountPercentage: number = 20; protected discountPercentageFromSub: number; protected loading = true; protected planCards: PlanCard[]; diff --git a/apps/web/src/app/billing/shared/plan-card/plan-card.component.html b/apps/web/src/app/billing/shared/plan-card/plan-card.component.html index 08fd3b435f6..af228842720 100644 --- a/apps/web/src/app/billing/shared/plan-card/plan-card.component.html +++ b/apps/web/src/app/billing/shared/plan-card/plan-card.component.html @@ -31,10 +31,6 @@ class="tw-text-[1.25rem] tw-mt-[6px] tw-font-bold tw-mb-0 tw-leading-[2rem] tw-flex tw-items-center" > {{ plan().title }} - - - {{ "upgradeDiscount" | i18n: plan().discount }} {{ plan().costPerMember | currency: "$" }} diff --git a/apps/web/src/app/billing/shared/plan-card/plan-card.component.ts b/apps/web/src/app/billing/shared/plan-card/plan-card.component.ts index 9e3f03a5e7d..4150ddc25ba 100644 --- a/apps/web/src/app/billing/shared/plan-card/plan-card.component.ts +++ b/apps/web/src/app/billing/shared/plan-card/plan-card.component.ts @@ -5,7 +5,6 @@ import { ProductTierType } from "@bitwarden/common/billing/enums"; export interface PlanCard { title: string; costPerMember: number; - discount?: number; isDisabled: boolean; isAnnual: boolean; isSelected: boolean;