mirror of
https://github.com/bitwarden/web
synced 2026-01-01 08:03:13 +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:
@@ -80,9 +80,9 @@ export class PoliciesComponent implements OnInit {
|
||||
display: true,
|
||||
},
|
||||
{
|
||||
name: this.i18nService.t('onlyOrg'),
|
||||
description: this.i18nService.t('onlyOrgDesc'),
|
||||
type: PolicyType.OnlyOrg,
|
||||
name: this.i18nService.t('singleOrg'),
|
||||
description: this.i18nService.t('singleOrgDesc'),
|
||||
type: PolicyType.SingleOrg,
|
||||
enabled: false,
|
||||
display: true,
|
||||
},
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
title="{{'warning' | i18n}}" icon="fa-warning">
|
||||
{{'twoStepLoginPolicyWarning' | i18n}}
|
||||
</app-callout>
|
||||
<app-callout type="warning" *ngIf="type === policyType.OnlyOrg" title="{{'warning' | i18n}}"
|
||||
<app-callout type="warning" *ngIf="type === policyType.SingleOrg" title="{{'warning' | i18n}}"
|
||||
icon="fa-warning">
|
||||
{{'onlyOrgPolicyWarning' | i18n}}
|
||||
{{'singleOrgPolicyWarning' | i18n}}
|
||||
</app-callout>
|
||||
<app-callout type="tip" title="{{'prerequisite' | i18n}}" *ngIf="type === policyType.RequireSso">
|
||||
{{'requireSsoPolicyReq' | i18n}}
|
||||
|
||||
@@ -178,9 +178,9 @@ export class PolicyEditComponent implements OnInit {
|
||||
if (!this.enabled) { // Don't need prevalidation checks if submitting to disable
|
||||
return true;
|
||||
}
|
||||
// Have OnlyOrg policy enabled?
|
||||
if (!(this.policiesEnabledMap.has(PolicyType.OnlyOrg)
|
||||
&& this.policiesEnabledMap.get(PolicyType.OnlyOrg))) {
|
||||
// Have SingleOrg policy enabled?
|
||||
if (!(this.policiesEnabledMap.has(PolicyType.SingleOrg)
|
||||
&& this.policiesEnabledMap.get(PolicyType.SingleOrg))) {
|
||||
this.toasterService.popAsync('error', null, this.i18nService.t('requireSsoPolicyReqError'));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user