From 6f408b871fbbe0c39221415a587939805d68132d Mon Sep 17 00:00:00 2001 From: Robyn MacCallum Date: Fri, 31 Dec 2021 10:06:07 -0500 Subject: [PATCH] Rename fb to formBuilder (#1369) --- .../src/app/organizations/manage/sso.component.ts | 6 +++--- .../src/app/policies/maximum-vault-timeout.component.ts | 4 ++-- src/app/organizations/policies/master-password.component.ts | 4 ++-- .../organizations/policies/password-generator.component.ts | 4 ++-- src/app/organizations/policies/reset-password.component.ts | 4 ++-- src/app/organizations/policies/send-options.component.ts | 4 ++-- src/app/organizations/tools/export.component.ts | 4 ++-- src/app/tools/export.component.ts | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/bitwarden_license/src/app/organizations/manage/sso.component.ts b/bitwarden_license/src/app/organizations/manage/sso.component.ts index 7c2aed98da..d2c0a26f5b 100644 --- a/bitwarden_license/src/app/organizations/manage/sso.component.ts +++ b/bitwarden_license/src/app/organizations/manage/sso.component.ts @@ -34,8 +34,8 @@ export class SsoComponent implements OnInit { spMetadataUrl: string; spAcsUrl: string; - enabled = this.fb.control(false); - data = this.fb.group({ + enabled = this.formBuilder.control(false); + data = this.formBuilder.group({ configType: [], keyConnectorEnabled: [], @@ -76,7 +76,7 @@ export class SsoComponent implements OnInit { }); constructor( - private fb: FormBuilder, + private formBuilder: FormBuilder, private route: ActivatedRoute, private apiService: ApiService, private platformUtilsService: PlatformUtilsService, diff --git a/bitwarden_license/src/app/policies/maximum-vault-timeout.component.ts b/bitwarden_license/src/app/policies/maximum-vault-timeout.component.ts index 9c1b44539d..fb0071aed7 100644 --- a/bitwarden_license/src/app/policies/maximum-vault-timeout.component.ts +++ b/bitwarden_license/src/app/policies/maximum-vault-timeout.component.ts @@ -24,12 +24,12 @@ export class MaximumVaultTimeoutPolicy extends BasePolicy { templateUrl: "maximum-vault-timeout.component.html", }) export class MaximumVaultTimeoutPolicyComponent extends BasePolicyComponent { - data = this.fb.group({ + data = this.formBuilder.group({ hours: [null], minutes: [null], }); - constructor(private fb: FormBuilder, private i18nService: I18nService) { + constructor(private formBuilder: FormBuilder, private i18nService: I18nService) { super(); } diff --git a/src/app/organizations/policies/master-password.component.ts b/src/app/organizations/policies/master-password.component.ts index d075b69f4d..e727d405af 100644 --- a/src/app/organizations/policies/master-password.component.ts +++ b/src/app/organizations/policies/master-password.component.ts @@ -20,7 +20,7 @@ export class MasterPasswordPolicy extends BasePolicy { templateUrl: "master-password.component.html", }) export class MasterPasswordPolicyComponent extends BasePolicyComponent { - data = this.fb.group({ + data = this.formBuilder.group({ minComplexity: [null], minLength: [null], requireUpper: [null], @@ -33,7 +33,7 @@ export class MasterPasswordPolicyComponent extends BasePolicyComponent { showKeyConnectorInfo: boolean = false; constructor( - private fb: FormBuilder, + private formBuilder: FormBuilder, i18nService: I18nService, private organizationService: OrganizationService ) { diff --git a/src/app/organizations/policies/password-generator.component.ts b/src/app/organizations/policies/password-generator.component.ts index d50d468a1d..d046ef5883 100644 --- a/src/app/organizations/policies/password-generator.component.ts +++ b/src/app/organizations/policies/password-generator.component.ts @@ -19,7 +19,7 @@ export class PasswordGeneratorPolicy extends BasePolicy { templateUrl: "password-generator.component.html", }) export class PasswordGeneratorPolicyComponent extends BasePolicyComponent { - data = this.fb.group({ + data = this.formBuilder.group({ defaultType: [null], minLength: [null], useUpper: [null], @@ -35,7 +35,7 @@ export class PasswordGeneratorPolicyComponent extends BasePolicyComponent { defaultTypes: { name: string; value: string }[]; - constructor(private fb: FormBuilder, i18nService: I18nService) { + constructor(private formBuilder: FormBuilder, i18nService: I18nService) { super(); this.defaultTypes = [ diff --git a/src/app/organizations/policies/reset-password.component.ts b/src/app/organizations/policies/reset-password.component.ts index c3254e69c7..ad6521f612 100644 --- a/src/app/organizations/policies/reset-password.component.ts +++ b/src/app/organizations/policies/reset-password.component.ts @@ -24,14 +24,14 @@ export class ResetPasswordPolicy extends BasePolicy { templateUrl: "reset-password.component.html", }) export class ResetPasswordPolicyComponent extends BasePolicyComponent { - data = this.fb.group({ + data = this.formBuilder.group({ autoEnrollEnabled: false, }); defaultTypes: { name: string; value: string }[]; showKeyConnectorInfo: boolean = false; - constructor(private fb: FormBuilder, private organizationService: OrganizationService) { + constructor(private formBuilder: FormBuilder, private organizationService: OrganizationService) { super(); } diff --git a/src/app/organizations/policies/send-options.component.ts b/src/app/organizations/policies/send-options.component.ts index f8b3d6c4ad..f789fb5ba1 100644 --- a/src/app/organizations/policies/send-options.component.ts +++ b/src/app/organizations/policies/send-options.component.ts @@ -17,11 +17,11 @@ export class SendOptionsPolicy extends BasePolicy { templateUrl: "send-options.component.html", }) export class SendOptionsPolicyComponent extends BasePolicyComponent { - data = this.fb.group({ + data = this.formBuilder.group({ disableHideEmail: false, }); - constructor(private fb: FormBuilder) { + constructor(private formBuilder: FormBuilder) { super(); } } diff --git a/src/app/organizations/tools/export.component.ts b/src/app/organizations/tools/export.component.ts index baa0524db0..71b11be258 100644 --- a/src/app/organizations/tools/export.component.ts +++ b/src/app/organizations/tools/export.component.ts @@ -28,7 +28,7 @@ export class ExportComponent extends BaseExportComponent { policyService: PolicyService, logService: LogService, userVerificationService: UserVerificationService, - fb: FormBuilder + formBuilder: FormBuilder ) { super( cryptoService, @@ -39,7 +39,7 @@ export class ExportComponent extends BaseExportComponent { policyService, logService, userVerificationService, - fb + formBuilder ); } diff --git a/src/app/tools/export.component.ts b/src/app/tools/export.component.ts index eb7824e69a..964b4cc3f9 100644 --- a/src/app/tools/export.component.ts +++ b/src/app/tools/export.component.ts @@ -28,7 +28,7 @@ export class ExportComponent extends BaseExportComponent { policyService: PolicyService, logService: LogService, userVerificationService: UserVerificationService, - fb: FormBuilder + formBuilder: FormBuilder ) { super( cryptoService, @@ -40,7 +40,7 @@ export class ExportComponent extends BaseExportComponent { window, logService, userVerificationService, - fb + formBuilder ); }