mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-31 03:52:12 +02:00
Port comment report functionality to TypeScript
This commit is contained in:
parent
d004546c65
commit
6501bb9f0d
1 changed files with 7 additions and 0 deletions
|
@ -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 a new issue