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

4 lines
164 B
TypeScript

export function reportEventHandler(event: Event): void {
const element = event.target as HTMLElement;
window['reportDialog']('question', element.dataset.qId);
}