diff --git a/app/javascript/retrospring/features/answerbox/comment/report.ts b/app/javascript/retrospring/features/answerbox/comment/report.ts new file mode 100644 index 00000000..ec1292f8 --- /dev/null +++ b/app/javascript/retrospring/features/answerbox/comment/report.ts @@ -0,0 +1,7 @@ +export function commentReportHandler(event: Event): void { + event.preventDefault(); + const button = event.target as HTMLButtonElement; + const commentId = button.dataset.cId; + + window['reportDialog']('comment', commentId); +} \ No newline at end of file