CLASSROOMIO-T-17: Disable form on toggle preview

This commit is contained in:
Rotimi Best
2021-09-24 02:09:27 +03:00
parent 3d1a8b4231
commit 876d3aee28
@@ -30,6 +30,7 @@
gradeMax={currentQuestion.points}
handleGrade={handleGrade(currentQuestion.id)}
{disableGrading}
disabled={true}
/>
{:else if QUESTION_TYPE.CHECKBOX === currentQuestion.question_type.id}
<CheckboxQuestion
@@ -46,6 +47,7 @@
gradeMax={currentQuestion.points}
handleGrade={handleGrade(currentQuestion.id)}
{disableGrading}
disabled={true}
/>
{:else if QUESTION_TYPE.TEXTAREA === currentQuestion.question_type.id}
<TextareaQuestion
@@ -62,6 +64,7 @@
gradeMax={currentQuestion.points}
handleGrade={handleGrade(currentQuestion.id)}
{disableGrading}
disabled={true}
/>
{/if}
{/each}