Rename fb to formBuilder (#1369)
This commit is contained in:
parent
8a9b992757
commit
6f408b871f
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
) {
|
||||
|
|
|
@ -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 = [
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue