2018-07-10 15:19:29 +02:00
|
|
|
import { Component, OnInit } from "@angular/core";
|
|
|
|
import { ActivatedRoute } from "@angular/router";
|
|
|
|
|
2022-06-14 17:10:53 +02:00
|
|
|
import { OrganizationService } from "@bitwarden/common/abstractions/organization.service";
|
|
|
|
import { Organization } from "@bitwarden/common/models/domain/organization";
|
2018-10-17 16:53:04 +02:00
|
|
|
|
2018-07-06 16:21:08 +02:00
|
|
|
@Component({
|
|
|
|
selector: "app-org-manage",
|
|
|
|
templateUrl: "manage.component.html",
|
|
|
|
})
|
2018-07-10 15:19:29 +02:00
|
|
|
export class ManageComponent implements OnInit {
|
2018-10-17 16:53:04 +02:00
|
|
|
organization: Organization;
|
2022-02-24 12:10:07 +01:00
|
|
|
accessPolicies = false;
|
|
|
|
accessGroups = false;
|
|
|
|
accessEvents = false;
|
|
|
|
accessSso = false;
|
2018-07-10 15:19:29 +02:00
|
|
|
|
2021-12-14 17:10:26 +01:00
|
|
|
constructor(private route: ActivatedRoute, private organizationService: OrganizationService) {}
|
2018-07-10 15:19:29 +02:00
|
|
|
|
|
|
|
ngOnInit() {
|
2021-02-03 18:41:33 +01:00
|
|
|
this.route.parent.params.subscribe(async (params) => {
|
2021-12-14 17:10:26 +01:00
|
|
|
this.organization = await this.organizationService.get(params.organizationId);
|
2020-01-15 21:42:30 +01:00
|
|
|
this.accessPolicies = this.organization.usePolicies;
|
2021-10-06 20:45:45 +02:00
|
|
|
this.accessSso = this.organization.useSso;
|
2018-10-17 16:53:04 +02:00
|
|
|
this.accessEvents = this.organization.useEvents;
|
|
|
|
this.accessGroups = this.organization.useGroups;
|
2018-07-10 15:19:29 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|