From 3f9c4955af81702591a6eeb2069f99faf0d2814d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Dec 2019 11:20:24 +0100 Subject: Speedup embed first paint --- .../videos/+video-watch/comment/video-comment-add.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app') 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) - } } -- cgit v1.2.3