mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
remove unused OrganizationBillingTabComponent (#8435)
Co-authored-by: cyprain-okeke <108260115+cyprain-okeke@users.noreply.github.com>
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
import { Component, OnInit } from "@angular/core";
|
|
||||||
import { ActivatedRoute } from "@angular/router";
|
|
||||||
import { map, Observable, switchMap } from "rxjs";
|
|
||||||
|
|
||||||
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
templateUrl: "organization-billing-tab.component.html",
|
|
||||||
})
|
|
||||||
export class OrganizationBillingTabComponent implements OnInit {
|
|
||||||
showPaymentAndHistory$: Observable<boolean>;
|
|
||||||
|
|
||||||
constructor(
|
|
||||||
private route: ActivatedRoute,
|
|
||||||
private organizationService: OrganizationService,
|
|
||||||
private platformUtilsService: PlatformUtilsService,
|
|
||||||
) {}
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
this.showPaymentAndHistory$ = this.route.params.pipe(
|
|
||||||
switchMap((params) => this.organizationService.get$(params.organizationId)),
|
|
||||||
map(
|
|
||||||
(org) =>
|
|
||||||
!this.platformUtilsService.isSelfHost() &&
|
|
||||||
org.canViewBillingHistory &&
|
|
||||||
org.canEditPaymentMethods,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user