aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-17 11:20:24 +0100
committerChocobozzz <me@florianbigard.com>2019-12-18 10:14:22 +0100
commit3f9c4955af81702591a6eeb2069f99faf0d2814d (patch)
tree8f23b5e79bde4a46dbc2318c0500576c35712486 /client/src/app/videos
parentf88ee4a9523bf3c4a61a45832963c558aed4d0b1 (diff)
downloadPeerTube-3f9c4955af81702591a6eeb2069f99faf0d2814d.tar.gz
PeerTube-3f9c4955af81702591a6eeb2069f99faf0d2814d.tar.zst
PeerTube-3f9c4955af81702591a6eeb2069f99faf0d2814d.zip
Speedup embed first paint
Diffstat (limited to 'client/src/app/videos')
-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}