aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-15 22:44:31 +0100
committerRigel Kent <sendmemail@rigelk.eu>2019-12-15 22:44:31 +0100
commit88adad2d0f42028a116ccc8173f5a62ad306cc32 (patch)
tree7066c14ed2a999bcaebd22599917545b631aa3ae /client/src/app/videos/+video-watch/comment/video-comment-add.component.ts
parentdd4f25eea802fd88ea641d730432b56f562e0861 (diff)
downloadPeerTube-88adad2d0f42028a116ccc8173f5a62ad306cc32.tar.gz
PeerTube-88adad2d0f42028a116ccc8173f5a62ad306cc32.tar.zst
PeerTube-88adad2d0f42028a116ccc8173f5a62ad306cc32.zip
improve comment form: cancel button and full width
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comment-add.component.ts5
1 files changed, 5 insertions, 0 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 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 {
26 @Input() focusOnInit = false 26 @Input() focusOnInit = false
27 27
28 @Output() commentCreated = new EventEmitter<VideoCommentCreate>() 28 @Output() commentCreated = new EventEmitter<VideoCommentCreate>()
29 @Output() cancel = new EventEmitter()
29 30
30 @ViewChild('visitorModal', { static: true }) visitorModal: NgbModal 31 @ViewChild('visitorModal', { static: true }) visitorModal: NgbModal
31 @ViewChild('textarea', { static: true }) textareaElement: ElementRef 32 @ViewChild('textarea', { static: true }) textareaElement: ElementRef
@@ -145,4 +146,8 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit {
145 return this.videoCommentService 146 return this.videoCommentService
146 .addCommentThread(this.video.id, commentCreate) 147 .addCommentThread(this.video.id, commentCreate)
147 } 148 }
149
150 private cancelCommentReply () {
151 this.cancel.emit(null)
152 }
148} 153}