mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +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">
|
<a routerLink="subscription" class="list-group-item" routerLinkActive="active">
|
||||||
{{ "subscription" | i18n }}
|
{{ "subscription" | i18n }}
|
||||||
</a>
|
</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 }}
|
{{ "paymentMethod" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
<a routerLink="history" class="list-group-item" routerLinkActive="active">
|
<a
|
||||||
|
*ngIf="showPaymentAndHistory"
|
||||||
|
routerLink="history"
|
||||||
|
class="list-group-item"
|
||||||
|
routerLinkActive="active"
|
||||||
|
>
|
||||||
{{ "billingHistory" | i18n }}
|
{{ "billingHistory" | i18n }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
|
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-org-billing-tab",
|
selector: "app-org-billing-tab",
|
||||||
templateUrl: "organization-billing-tab.component.html",
|
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