From e33d2478c2752d05885c62ef6526b0f9c8a12aa6 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 3 Jan 2022 22:21:26 +0100 Subject: [PATCH] Port questionbox report functionality to TypeScript --- app/javascript/retrospring/features/questionbox/report.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/javascript/retrospring/features/questionbox/report.ts diff --git a/app/javascript/retrospring/features/questionbox/report.ts b/app/javascript/retrospring/features/questionbox/report.ts new file mode 100644 index 00000000..0798c62a --- /dev/null +++ b/app/javascript/retrospring/features/questionbox/report.ts @@ -0,0 +1,7 @@ +export function questionboxReportHandler(event: Event) { + event.preventDefault(); + const button = event.target as HTMLButtonElement; + const questionId = button.dataset.qId; + + window['reportDialog']('question', questionId); +} \ No newline at end of file