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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
272 B
TypeScript
Raw Normal View History

import { reportDialog } from 'utilities/reportDialog';
export function answerboxReportHandler(event: Event): void {
event.preventDefault();
const button = event.target as HTMLButtonElement;
const answerId = button.dataset.aId;
reportDialog('answer', answerId);
}