fix: branding, course, lesson and certificate creation

This commit is contained in:
Jannat Patel
2024-04-03 22:42:59 +05:30
parent efcdba3a29
commit a46306720b
14 changed files with 84 additions and 23 deletions

View File

@@ -73,17 +73,19 @@ import {
Button,
createDocumentResource,
} from 'frappe-ui'
import { computed, reactive, onMounted, inject, ref } from 'vue'
import { computed, reactive, onMounted, inject, ref, watch } from 'vue'
import EditorJS from '@editorjs/editorjs'
import { createToast } from '../utils'
import LessonPlugins from '@/components/LessonPlugins.vue'
import { getEditorTools } from '../utils'
import { ChevronRight } from 'lucide-vue-next'
import { useRouter } from 'vue-router'
const editor = ref(null)
const instructorEditor = ref(null)
const user = inject('$user')
const openInstructorEditor = ref(false)
const router = useRouter()
const props = defineProps({
courseName: {
@@ -319,6 +321,7 @@ const createNewLesson = () => {
{
onSuccess() {
showToast('Success', 'Lesson created successfully', 'check')
lessonDetails.reload()
},
}
)