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

9 lines
277 B
TypeScript

import { reportDialog } from 'utilities/reportDialog';
export function questionReportHandler(event: Event): void {
event.preventDefault();
const button = event.target as HTMLButtonElement;
const questionId = button.dataset.qId;
reportDialog('question', questionId);
}