1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

[EC-657] Hide Billing History and Payment Method for selfhosted orgs (#3935)

This commit is contained in:
Shane Melton
2022-11-01 10:10:50 -07:00
committed by GitHub
parent 67551a274a
commit f3a97c492a
2 changed files with 20 additions and 3 deletions

View File

@@ -7,10 +7,20 @@
<a routerLink="subscription" class="list-group-item" routerLinkActive="active">
{{ "subscription" | i18n }}
</a>
<a routerLink="payment-method" class="list-group-item" routerLinkActive="active">
<a
*ngIf="showPaymentAndHistory"
routerLink="payment-method"
class="list-group-item"
routerLinkActive="active"
>
{{ "paymentMethod" | i18n }}
</a>
<a routerLink="history" class="list-group-item" routerLinkActive="active">
<a
*ngIf="showPaymentAndHistory"
routerLink="history"
class="list-group-item"
routerLinkActive="active"
>
{{ "billingHistory" | i18n }}
</a>
</div>

View File

@@ -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();
}
}