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/login | |
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/login')
-rw-r--r-- | client/src/app/login/login.component.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index f7aad06e8..a91522db3 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts | |||
@@ -7,7 +7,7 @@ import { AuthService } from '../core' | |||
7 | import { FormReactive } from '../shared' | 7 | import { FormReactive } from '../shared' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | 8 | import { I18n } from '@ngx-translate/i18n-polyfill' |
9 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 9 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
10 | import { LOGIN_PASSWORD, LOGIN_USERNAME } from '@app/shared/forms/form-validators/login' | 10 | import { LoginValidatorsService } from '@app/shared/forms/form-validators/login-validators.service' |
11 | 11 | ||
12 | @Component({ | 12 | @Component({ |
13 | selector: 'my-login', | 13 | selector: 'my-login', |
@@ -24,6 +24,7 @@ export class LoginComponent extends FormReactive implements OnInit { | |||
24 | 24 | ||
25 | constructor ( | 25 | constructor ( |
26 | protected formValidatorService: FormValidatorService, | 26 | protected formValidatorService: FormValidatorService, |
27 | private loginValidatorsService: LoginValidatorsService, | ||
27 | private authService: AuthService, | 28 | private authService: AuthService, |
28 | private userService: UserService, | 29 | private userService: UserService, |
29 | private serverService: ServerService, | 30 | private serverService: ServerService, |
@@ -40,8 +41,8 @@ export class LoginComponent extends FormReactive implements OnInit { | |||
40 | 41 | ||
41 | ngOnInit () { | 42 | ngOnInit () { |
42 | this.buildForm({ | 43 | this.buildForm({ |
43 | username: LOGIN_USERNAME, | 44 | username: this.loginValidatorsService.LOGIN_USERNAME, |
44 | password: LOGIN_PASSWORD | 45 | password: this.loginValidatorsService.LOGIN_PASSWORD |
45 | }) | 46 | }) |
46 | } | 47 | } |
47 | 48 | ||