Retrospring/app/javascript/retrospring/features/user/report.ts

6 lines
212 B
TypeScript
Raw Normal View History

export function userReportHandler(event: Event): void {
event.preventDefault();
const button: HTMLButtonElement = event.target as HTMLButtonElement;
window['reportDialog']('user', button.dataset.target);
}