Port comment report functionality to TypeScript

This commit is contained in:
Andreas Nedbal 2022-01-09 00:56:28 +01:00 committed by Andreas Nedbal
parent d004546c65
commit 6501bb9f0d
1 changed files with 7 additions and 0 deletions

View File

@ -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);
}