diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-25 11:01:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-25 11:01:53 +0200 |
commit | b4a929accf576edc733fde75a81dfad9a3d288ed (patch) | |
tree | dbf7e0acca829b5fed3a363fe7b8e3f80041558f /client/src/app/shared/forms/form-validators/form-validator.service.ts | |
parent | b2c60abe6e1637d8f55688ffcbf99cf553ed52ea (diff) | |
download | PeerTube-b4a929accf576edc733fde75a81dfad9a3d288ed.tar.gz PeerTube-b4a929accf576edc733fde75a81dfad9a3d288ed.tar.zst PeerTube-b4a929accf576edc733fde75a81dfad9a3d288ed.zip |
Add "agree to the terms" checkbox in registration form
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 = {}) { |