mirror of
https://github.com/bitwarden/browser
synced 2025-12-31 07:33:23 +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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user