aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts8
1 files changed, 4 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 083509b83..1be96ad9e 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
@@ -137,6 +137,10 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
137 this.router.navigate([ '/login' ]) 137 this.router.navigate([ '/login' ])
138 } 138 }
139 139
140 cancelCommentReply () {
141 this.cancel.emit(null)
142 }
143
140 private addCommentReply (commentCreate: VideoCommentCreate) { 144 private addCommentReply (commentCreate: VideoCommentCreate) {
141 return this.videoCommentService 145 return this.videoCommentService
142 .addCommentReply(this.video.id, this.parentComment.id, commentCreate) 146 .addCommentReply(this.video.id, this.parentComment.id, commentCreate)
@@ -146,8 +150,4 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
146 return this.videoCommentService 150 return this.videoCommentService
147 .addCommentThread(this.video.id, commentCreate) 151 .addCommentThread(this.video.id, commentCreate)
148 } 152 }
149
150 private cancelCommentReply () {
151 this.cancel.emit(null)
152 }
153} 153}