Port comment report functionality to TypeScript
This commit is contained in:
parent
d004546c65
commit
6501bb9f0d
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue