32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import { Component, OnInit } 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({
|
|
selector: "app-org-manage",
|
|
templateUrl: "manage.component.html",
|
|
})
|
|
export class ManageComponent implements OnInit {
|
|
organization: Organization;
|
|
accessPolicies = false;
|
|
accessGroups = false;
|
|
accessEvents = false;
|
|
accessSso = false;
|
|
accessScim = false;
|
|
|
|
constructor(private route: ActivatedRoute, private organizationService: OrganizationService) {}
|
|
|
|
ngOnInit() {
|
|
this.route.parent.params.subscribe(async (params) => {
|
|
this.organization = await this.organizationService.get(params.organizationId);
|
|
this.accessPolicies = this.organization.usePolicies;
|
|
this.accessSso = this.organization.useSso;
|
|
this.accessEvents = this.organization.useEvents;
|
|
this.accessGroups = this.organization.useGroups;
|
|
this.accessScim = this.organization.useScim;
|
|
});
|
|
}
|
|
}
|