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:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user