From 88adad2d0f42028a116ccc8173f5a62ad306cc32 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 15 Dec 2019 22:44:31 +0100 Subject: improve comment form: cancel button and full width --- .../app/videos/+video-watch/comment/video-comment-add.component.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts') 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..083509b83 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 @@ -145,4 +146,8 @@ 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