mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 15:19:08 +01:00
Port answerbox report feature to TypeScript
This commit is contained in:
parent
74463b271c
commit
346037ddda
1 changed files with 7 additions and 0 deletions
7
app/javascript/retrospring/features/answerbox/report.ts
Normal file
7
app/javascript/retrospring/features/answerbox/report.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export function answerboxReportHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
const button = event.target as HTMLButtonElement;
|
||||
const answerId = button.dataset.aId;
|
||||
|
||||
window['reportDialog']('answer', answerId);
|
||||
}
|
Loading…
Reference in a new issue