Display mcq and ucq corrections
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nemunaire 2022-09-01 22:09:14 +02:00
commit e0cd502c35
4 changed files with 54 additions and 14 deletions

View file

@ -90,6 +90,7 @@
if (data.action && data.action == "new_question") {
show_question = data.question;
survey.corrected = data.corrected;
corrections = data.corrections;
if (timer_cancel) {
clearInterval(timer_cancel);
timer_cancel = null;
@ -156,6 +157,8 @@
});
});
}
let corrections = {};
</script>
{#await surveyP then unused}
@ -189,6 +192,7 @@
{survey}
{question}
readonly={timer >= 100 || survey.corrected}
{corrections}
bind:value={value}
on:change={sendValue}
>