mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Remove unnecessary organization lookup
This commit is contained in:
@@ -1,21 +1,7 @@
|
|||||||
import { Component, OnInit } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { ActivatedRoute } from "@angular/router";
|
|
||||||
|
|
||||||
import { OrganizationService } from "@bitwarden/common/abstractions/organization.service";
|
|
||||||
import { Organization } from "@bitwarden/common/models/domain/organization";
|
|
||||||
|
|
||||||
@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 implements OnInit {
|
export class OrganizationBillingTabComponent {}
|
||||||
organization: Organization;
|
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute, private organizationService: OrganizationService) {}
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
this.route.parent.params.subscribe(async (params) => {
|
|
||||||
this.organization = await this.organizationService.get(params.organizationId);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user