feat(frontend): Vue can now interact with the chosen answers for questions.
This commit is contained in:
parent
6d452c7f72
commit
63d1ed8bd2
6 changed files with 99 additions and 1 deletions
|
@ -0,0 +1,8 @@
|
|||
import {multipleChoiceQuestionAdapter} from "@/views/learning-paths/gift-adapters/multiple-choice-question-adapter.ts";
|
||||
import {essayQuestionAdapter} from "@/views/learning-paths/gift-adapters/essay-question-adapter.ts";
|
||||
|
||||
export const giftAdapters = [multipleChoiceQuestionAdapter, essayQuestionAdapter];
|
||||
|
||||
export function getGiftAdapterForType(questionType: string): GiftAdapter | undefined {
|
||||
return giftAdapters.find(it => it.questionType === questionType);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue