diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-05 15:01:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 15:02:27 +0200 |
commit | e309822b93d9b69f30cbe830ef3d09dfdb2c13b2 (patch) | |
tree | 41dbc3b3108ced7fdba4062974e568695c30e486 /client/src/app/signup/signup.component.ts | |
parent | d4d5853e65e584ca51c718f8df590b987f981047 (diff) | |
download | PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.tar.gz PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.tar.zst PeerTube-e309822b93d9b69f30cbe830ef3d09dfdb2c13b2.zip |
Add form validator translations
Diffstat (limited to 'client/src/app/signup/signup.component.ts')
-rw-r--r-- | client/src/app/signup/signup.component.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/signup/signup.component.ts b/client/src/app/signup/signup.component.ts index 682e592c7..a40f42cb1 100644 --- a/client/src/app/signup/signup.component.ts +++ b/client/src/app/signup/signup.component.ts | |||
@@ -1,10 +1,9 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { Router } from '@angular/router' | 2 | import { Router } from '@angular/router' |
3 | import { ServerService } from '@app/core/server' | 3 | import { ServerService } from '@app/core/server' |
4 | |||
5 | import { NotificationsService } from 'angular2-notifications' | 4 | import { NotificationsService } from 'angular2-notifications' |
6 | import { UserCreate } from '../../../../shared' | 5 | import { UserCreate } from '../../../../shared' |
7 | import { FormReactive, USER_EMAIL, USER_PASSWORD, USER_USERNAME, UserService } from '../shared' | 6 | import { FormReactive, UserService, UserValidatorsService } from '../shared' |
8 | import { RedirectService } from '@app/core' | 7 | import { RedirectService } from '@app/core' |
9 | import { I18n } from '@ngx-translate/i18n-polyfill' | 8 | import { I18n } from '@ngx-translate/i18n-polyfill' |
10 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 9 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
@@ -32,6 +31,7 @@ export class SignupComponent extends FormReactive implements OnInit { | |||
32 | 31 | ||
33 | constructor ( | 32 | constructor ( |
34 | protected formValidatorService: FormValidatorService, | 33 | protected formValidatorService: FormValidatorService, |
34 | private userValidatorsService: UserValidatorsService, | ||
35 | private router: Router, | 35 | private router: Router, |
36 | private notificationsService: NotificationsService, | 36 | private notificationsService: NotificationsService, |
37 | private userService: UserService, | 37 | private userService: UserService, |
@@ -48,9 +48,9 @@ export class SignupComponent extends FormReactive implements OnInit { | |||
48 | 48 | ||
49 | ngOnInit () { | 49 | ngOnInit () { |
50 | this.buildForm({ | 50 | this.buildForm({ |
51 | username: USER_USERNAME, | 51 | username: this.userValidatorsService.USER_USERNAME, |
52 | password: USER_PASSWORD, | 52 | password: this.userValidatorsService.USER_PASSWORD, |
53 | email: USER_EMAIL | 53 | email: this.userValidatorsService.USER_EMAIL |
54 | }) | 54 | }) |
55 | 55 | ||
56 | this.serverService.configLoaded | 56 | this.serverService.configLoaded |