refactor: mark two options as required in choices

This commit is contained in:
Ejaaz Khan
2024-11-18 23:27:54 +05:30
parent 26f1e228a9
commit 08261c804f

View File

@@ -63,7 +63,7 @@
<FormControl
:label="__('Option') + ' ' + n"
v-model="question[`option_${n}`]"
:required="n == 1 ? true : false"
:required="n <= 2 ? true : false"
/>
<FormControl
:label="__('Explanation')"
@@ -84,7 +84,7 @@
<FormControl
:label="__('Possibility') + ' ' + n"
v-model="question[`possibility_${n}`]"
:required="n == 1 ? true : false"
:required="n <= 2 ? true : false"
/>
</div>
</div>