feat(backend): Overzicht over submissions toegevoegd.
This commit is contained in:
parent
cc92727a09
commit
4dc880c2f7
9 changed files with 165 additions and 39 deletions
|
@ -38,7 +38,6 @@
|
|||
}
|
||||
|
||||
function attachQuestionListeners(): void {
|
||||
let counter = 0;
|
||||
forEachQuestion((index, _name, type, element) => {
|
||||
getGiftAdapterForType(type)?.installListener(
|
||||
element,
|
||||
|
@ -46,7 +45,6 @@
|
|||
submissionData.value = copyArrayWith(index, newAnswer, submissionData.value ?? [])
|
||||
}
|
||||
);
|
||||
counter++;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -62,7 +60,12 @@
|
|||
submissionData.value = answers;
|
||||
}
|
||||
|
||||
onMounted(() => nextTick(() => attachQuestionListeners()));
|
||||
onMounted(() =>
|
||||
nextTick(() => {
|
||||
attachQuestionListeners()
|
||||
setAnswers(props.submissionData ?? []);
|
||||
})
|
||||
);
|
||||
|
||||
watch(() => props.learningObjectContent, async () => {
|
||||
await nextTick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue