mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-20 20:09:59 +01:00
Port reporting users from CoffeeScript to TypeScript
This commit is contained in:
parent
2cc8a33d5b
commit
1bc52786ad
1 changed files with 6 additions and 0 deletions
6
app/javascript/retrospring/features/user/report.ts
Normal file
6
app/javascript/retrospring/features/user/report.ts
Normal file
|
@ -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 a new issue