aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts6
1 files changed, 2 insertions, 4 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 3fa5fd623..41edb35ab 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
@@ -7,7 +7,6 @@ import { Video } from '@app/shared/shared-main'
7import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment' 7import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment'
8import { NgbModal } from '@ng-bootstrap/ng-bootstrap' 8import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
9import { VideoCommentCreate } from '@shared/models' 9import { VideoCommentCreate } from '@shared/models'
10import { I18n } from '@ngx-translate/i18n-polyfill'
11 10
12@Component({ 11@Component({
13 selector: 'my-video-comment-add', 12 selector: 'my-video-comment-add',
@@ -39,7 +38,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
39 private videoCommentService: VideoCommentService, 38 private videoCommentService: VideoCommentService,
40 private modalService: NgbModal, 39 private modalService: NgbModal,
41 private router: Router, 40 private router: Router,
42 private i18n: I18n
43 ) { 41 ) {
44 super() 42 super()
45 } 43 }
@@ -57,9 +55,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
57 55
58 if (this.user) { 56 if (this.user) {
59 if (!this.parentComment) { 57 if (!this.parentComment) {
60 this.addingCommentButtonValue = this.i18n('Comment') 58 this.addingCommentButtonValue = $localize`Comment`
61 } else { 59 } else {
62 this.addingCommentButtonValue = this.i18n('Reply') 60 this.addingCommentButtonValue = $localize`Reply`
63 } 61 }
64 62
65 this.initTextValue() 63 this.initTextValue()