aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comment-add.component.ts2
-rw-r--r--client/src/app/+videos/+video-watch/comment/video-comments.component.ts6
2 files changed, 6 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 41edb35ab..fa20ec3b9 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
@@ -37,7 +37,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
37 private notifier: Notifier, 37 private notifier: Notifier,
38 private videoCommentService: VideoCommentService, 38 private videoCommentService: VideoCommentService,
39 private modalService: NgbModal, 39 private modalService: NgbModal,
40 private router: Router, 40 private router: Router
41 ) { 41 ) {
42 super() 42 super()
43 } 43 }
diff --git a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts b/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
index adce31c5b..79627b1af 100644
--- a/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
+++ b/client/src/app/+videos/+video-watch/comment/video-comments.component.ts
@@ -160,7 +160,11 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
160 this.timestampClicked.emit(timestamp) 160 this.timestampClicked.emit(timestamp)
161 } 161 }
162 162
163 async onWantedToDelete(commentToDelete: VideoComment, title = $localize`Delete`, message = $localize`Do you really want to delete this comment?`): Promise<boolean> { 163 async onWantedToDelete (
164 commentToDelete: VideoComment,
165 title = $localize`Delete`,
166 message = $localize`Do you really want to delete this comment?`
167 ): Promise<boolean> {
164 if (commentToDelete.isLocal || this.video.isLocal) { 168 if (commentToDelete.isLocal || this.video.isLocal) {
165 message += $localize` The deletion will be sent to remote instances so they can reflect the change.` 169 message += $localize` The deletion will be sent to remote instances so they can reflect the change.`
166 } else { 170 } else {