diff options
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.ts | 5 |
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 | } |