aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/form-validators/form-validator.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-25 11:01:53 +0200
committerChocobozzz <me@florianbigard.com>2018-07-25 11:01:53 +0200
commitb4a929accf576edc733fde75a81dfad9a3d288ed (patch)
treedbf7e0acca829b5fed3a363fe7b8e3f80041558f /client/src/app/shared/forms/form-validators/form-validator.service.ts
parentb2c60abe6e1637d8f55688ffcbf99cf553ed52ea (diff)
downloadPeerTube-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.ts4
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 @@
1import { FormBuilder, FormControl, FormGroup, ValidatorFn } from '@angular/forms' 1import { FormBuilder, FormControl, FormGroup, ValidatorFn } from '@angular/forms'
2import { Injectable } from '@angular/core' 2import { Injectable } from '@angular/core'
3import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/forms/form-reactive' 3import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/forms/form-reactive'
4import { I18n } from '@ngx-translate/i18n-polyfill'
5 4
6export type BuildFormValidator = { 5export type BuildFormValidator = {
7 VALIDATORS: ValidatorFn[], 6 VALIDATORS: ValidatorFn[],
@@ -18,8 +17,7 @@ export type BuildFormDefaultValues = {
18export class FormValidatorService { 17export 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 = {}) {