Port reporting users from CoffeeScript to TypeScript
This commit is contained in:
parent
2cc8a33d5b
commit
1bc52786ad
|
@ -0,0 +1,6 @@
|
||||||
|
export function userReportHandler(event: Event): void {
|
||||||
|
event.preventDefault();
|
||||||
|
const button: HTMLButtonElement = event.target as HTMLButtonElement;
|
||||||
|
|
||||||
|
window['reportDialog']('user', button.dataset.target);
|
||||||
|
}
|
Loading…
Reference in New Issue