feat: quiz creation from lesson form

This commit is contained in:
Jannat Patel
2024-08-12 12:47:17 +05:30
parent 62ab853605
commit 2994144718
3 changed files with 20 additions and 9 deletions

View File

@@ -91,7 +91,8 @@
<div>
{{ option.label }}
</div>
<div v-if="option.label != option.description"
<div
v-if="option.label != option.description"
class="text-xs text-gray-700"
v-html="option.description"
></div>

View File

@@ -26,12 +26,15 @@
:label="__('Add an existing quiz')"
@change="(option) => addQuiz(option)"
/>
<router-link :to="{
name: 'QuizCreation',
params: {
quizID: 'new',
}
}" class="self-end ml-2">
<router-link
:to="{
name: 'QuizCreation',
params: {
quizID: 'new',
},
}"
class="self-end ml-2"
>
<Button>
<template #icon>
<Plus class="h-4 w-4 stroke-1.5" />
@@ -121,7 +124,7 @@ const props = defineProps({
})
const addQuiz = (value) => {
console.log("here")
console.log('here')
console.log(value)
getCurrentEditor().caret.setToLastBlock('end', 0)
if (value) {