diff options
Diffstat (limited to 'client/src/app/shared/forms/form-validators/form-validator.service.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/form-validator.service.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/app/shared/forms/form-validators/form-validator.service.ts b/client/src/app/shared/forms/form-validators/form-validator.service.ts index d10e17ca7..19a8bef25 100644 --- a/client/src/app/shared/forms/form-validators/form-validator.service.ts +++ b/client/src/app/shared/forms/form-validators/form-validator.service.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | import { FormBuilder, FormControl, FormGroup, ValidatorFn } from '@angular/forms' | 1 | import { FormBuilder, FormControl, FormGroup, ValidatorFn } from '@angular/forms' |
2 | import { Injectable } from '@angular/core' | 2 | import { Injectable } from '@angular/core' |
3 | import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/forms/form-reactive' | 3 | import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/forms/form-reactive' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
5 | 4 | ||
6 | export type BuildFormValidator = { | 5 | export type BuildFormValidator = { |
7 | VALIDATORS: ValidatorFn[], | 6 | VALIDATORS: ValidatorFn[], |
@@ -18,8 +17,7 @@ export type BuildFormDefaultValues = { | |||
18 | export class FormValidatorService { | 17 | export class FormValidatorService { |
19 | 18 | ||
20 | constructor ( | 19 | constructor ( |
21 | private formBuilder: FormBuilder, | 20 | private formBuilder: FormBuilder |
22 | private i18n: I18n | ||
23 | ) {} | 21 | ) {} |
24 | 22 | ||
25 | buildForm (obj: BuildFormArgument, defaultValues: BuildFormDefaultValues = {}) { | 23 | buildForm (obj: BuildFormArgument, defaultValues: BuildFormDefaultValues = {}) { |