diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch')
-rw-r--r-- | client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts | 6 |
1 files changed, 3 insertions, 3 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 fa20ec3b9..c1d0032cc 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 | |||
@@ -2,7 +2,8 @@ import { Observable } from 'rxjs' | |||
2 | import { Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core' | 2 | import { Component, ElementRef, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges, ViewChild } from '@angular/core' |
3 | import { Router } from '@angular/router' | 3 | import { Router } from '@angular/router' |
4 | import { Notifier, User } from '@app/core' | 4 | import { Notifier, User } from '@app/core' |
5 | import { FormReactive, FormValidatorService, VideoCommentValidatorsService } from '@app/shared/shared-forms' | 5 | import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators' |
6 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | ||
6 | import { Video } from '@app/shared/shared-main' | 7 | import { Video } from '@app/shared/shared-main' |
7 | import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' | 8 | import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' |
8 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 9 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
@@ -33,7 +34,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
33 | 34 | ||
34 | constructor ( | 35 | constructor ( |
35 | protected formValidatorService: FormValidatorService, | 36 | protected formValidatorService: FormValidatorService, |
36 | private videoCommentValidatorsService: VideoCommentValidatorsService, | ||
37 | private notifier: Notifier, | 37 | private notifier: Notifier, |
38 | private videoCommentService: VideoCommentService, | 38 | private videoCommentService: VideoCommentService, |
39 | private modalService: NgbModal, | 39 | private modalService: NgbModal, |
@@ -50,7 +50,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges, | |||
50 | 50 | ||
51 | ngOnInit () { | 51 | ngOnInit () { |
52 | this.buildForm({ | 52 | this.buildForm({ |
53 | text: this.videoCommentValidatorsService.VIDEO_COMMENT_TEXT | 53 | text: VIDEO_COMMENT_TEXT_VALIDATOR |
54 | }) | 54 | }) |
55 | 55 | ||
56 | if (this.user) { | 56 | if (this.user) { |