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/videos/+video-watch/comment/video-comment-add.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/videos/+video-watch/comment/video-comment-add.component.ts')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts index c70e544a3..46d7a4e9e 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts | |||
@@ -3,13 +3,13 @@ import { NotificationsService } from 'angular2-notifications' | |||
3 | import { Observable } from 'rxjs' | 3 | import { Observable } from 'rxjs' |
4 | import { VideoCommentCreate } from '../../../../../../shared/models/videos/video-comment.model' | 4 | import { VideoCommentCreate } from '../../../../../../shared/models/videos/video-comment.model' |
5 | import { FormReactive } from '../../../shared' | 5 | import { FormReactive } from '../../../shared' |
6 | import { VIDEO_COMMENT_TEXT } from '../../../shared/forms/form-validators/video-comment' | ||
7 | import { User } from '../../../shared/users' | 6 | import { User } from '../../../shared/users' |
8 | import { Video } from '../../../shared/video/video.model' | 7 | import { Video } from '../../../shared/video/video.model' |
9 | import { VideoComment } from './video-comment.model' | 8 | import { VideoComment } from './video-comment.model' |
10 | import { VideoCommentService } from './video-comment.service' | 9 | import { VideoCommentService } from './video-comment.service' |
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | 10 | import { I18n } from '@ngx-translate/i18n-polyfill' |
12 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 11 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
12 | import { VideoCommentValidatorsService } from '@app/shared/forms/form-validators/video-comment-validators.service' | ||
13 | 13 | ||
14 | @Component({ | 14 | @Component({ |
15 | selector: 'my-video-comment-add', | 15 | selector: 'my-video-comment-add', |
@@ -29,6 +29,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
29 | 29 | ||
30 | constructor ( | 30 | constructor ( |
31 | protected formValidatorService: FormValidatorService, | 31 | protected formValidatorService: FormValidatorService, |
32 | private videoCommentValidatorsService: VideoCommentValidatorsService, | ||
32 | private notificationsService: NotificationsService, | 33 | private notificationsService: NotificationsService, |
33 | private videoCommentService: VideoCommentService, | 34 | private videoCommentService: VideoCommentService, |
34 | private i18n: I18n | 35 | private i18n: I18n |
@@ -38,7 +39,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { | |||
38 | 39 | ||
39 | ngOnInit () { | 40 | ngOnInit () { |
40 | this.buildForm({ | 41 | this.buildForm({ |
41 | text: VIDEO_COMMENT_TEXT | 42 | text: this.videoCommentValidatorsService.VIDEO_COMMENT_TEXT |
42 | }) | 43 | }) |
43 | 44 | ||
44 | if (this.focusOnInit === true) { | 45 | if (this.focusOnInit === true) { |