1
0
mirror of https://github.com/bitwarden/web synced 2025-12-31 15:43:14 +00:00

Only org to single org (#680)

* change OnlyOrg references to SingleOrg

* updated jslib

* change OnlyOrg references to SingleOrg

* missed a reference to OnlyOrg in messages
This commit is contained in:
Addison Beck
2020-10-27 10:28:57 -04:00
committed by GitHub
parent f6946085d8
commit ebe5a6030e
7 changed files with 21 additions and 21 deletions

View File

@@ -58,7 +58,7 @@ export class OrganizationPlansComponent implements OnInit {
businessName: string;
productTypes = ProductType;
formPromise: Promise<any>;
onlyOrgPolicyBlock: boolean = false;
singleOrgPolicyBlock: boolean = false;
plans: PlanResponse[];
@@ -197,12 +197,12 @@ export class OrganizationPlansComponent implements OnInit {
}
async submit() {
if (this.onlyOrgPolicyBlock) {
if (this.singleOrgPolicyBlock) {
return;
} else {
const policies = await this.policyService.getAll(PolicyType.OnlyOrg);
this.onlyOrgPolicyBlock = policies.some(policy => policy.enabled);
if (this.onlyOrgPolicyBlock) {
const policies = await this.policyService.getAll(PolicyType.SingleOrg);
this.singleOrgPolicyBlock = policies.some(policy => policy.enabled);
if (this.singleOrgPolicyBlock) {
return;
}
}