X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment-add.component.ts;h=1be96ad9e85b5d96551db98254e21fc01a810271;hb=3f9c4955af81702591a6eeb2069f99faf0d2814d;hp=083509b832b1adc1fdeb10bed3d49a7ab4d19137;hpb=f88ee4a9523bf3c4a61a45832963c558aed4d0b1;p=github%2FChocobozzz%2FPeerTube.git 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 { this.router.navigate([ '/login' ]) } + cancelCommentReply () { + this.cancel.emit(null) + } + private addCommentReply (commentCreate: VideoCommentCreate) { return this.videoCommentService .addCommentReply(this.video.id, this.parentComment.id, commentCreate) @@ -146,8 +150,4 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { return this.videoCommentService .addCommentThread(this.video.id, commentCreate) } - - private cancelCommentReply () { - this.cancel.emit(null) - } }