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

9 lines
280 B
TypeScript
Raw Normal View History

import { reportDialog } from 'utilities/reportDialog';
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;
reportDialog('question', questionId);
}