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

7 lines
234 B
TypeScript
Raw Normal View History

2022-01-03 13:29:09 -08:00
export function questionboxReportHandler(event: Event): void {
event.preventDefault();
const button = event.target as HTMLButtonElement;
const questionId = button.dataset.qId;
window['reportDialog']('question', questionId);
}