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

9 lines
280 B
TypeScript

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