From f3a97c492af2824728cac1bf9a02190c1a7d5d26 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Tue, 1 Nov 2022 10:10:50 -0700 Subject: [PATCH] [EC-657] Hide Billing History and Payment Method for selfhosted orgs (#3935) --- .../organization-billing-tab.component.html | 14 ++++++++++++-- .../billing/organization-billing-tab.component.ts | 9 ++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/organizations/billing/organization-billing-tab.component.html b/apps/web/src/app/organizations/billing/organization-billing-tab.component.html index b01c0eea7f0..7f755fccbb9 100644 --- a/apps/web/src/app/organizations/billing/organization-billing-tab.component.html +++ b/apps/web/src/app/organizations/billing/organization-billing-tab.component.html @@ -7,10 +7,20 @@ {{ "subscription" | i18n }} - + {{ "paymentMethod" | i18n }} - + {{ "billingHistory" | i18n }} diff --git a/apps/web/src/app/organizations/billing/organization-billing-tab.component.ts b/apps/web/src/app/organizations/billing/organization-billing-tab.component.ts index 17f47e54d10..5eb207dee92 100644 --- a/apps/web/src/app/organizations/billing/organization-billing-tab.component.ts +++ b/apps/web/src/app/organizations/billing/organization-billing-tab.component.ts @@ -1,7 +1,14 @@ import { Component } from "@angular/core"; +import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service"; + @Component({ selector: "app-org-billing-tab", templateUrl: "organization-billing-tab.component.html", }) -export class OrganizationBillingTabComponent {} +export class OrganizationBillingTabComponent { + showPaymentAndHistory: boolean; + constructor(private platformUtilsService: PlatformUtilsService) { + this.showPaymentAndHistory = !this.platformUtilsService.isSelfHost(); + } +}