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=8cdd37680b35cf68cad97d6b18efc3e7dc3c63cd;hpb=f36da21e40104a50acb00132920b835240cebb38;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 8cdd37680..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 @@ -26,6 +26,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { @Input() focusOnInit = false @Output() commentCreated = new EventEmitter() + @Output() cancel = new EventEmitter() @ViewChild('visitorModal', { static: true }) visitorModal: NgbModal @ViewChild('textarea', { static: true }) textareaElement: ElementRef @@ -136,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)