feat: onboarding
This commit is contained in:
@@ -92,13 +92,13 @@ import LessonHelp from '@/components/LessonHelp.vue'
|
||||
import { ChevronRight } from 'lucide-vue-next'
|
||||
import { updateDocumentTitle, createToast, getEditorTools } from '@/utils'
|
||||
import { capture } from '@/telemetry'
|
||||
import { useSettings } from '@/stores/settings'
|
||||
import { useOnboarding } from 'frappe-ui/frappe'
|
||||
|
||||
const editor = ref(null)
|
||||
const instructorEditor = ref(null)
|
||||
const user = inject('$user')
|
||||
const openInstructorEditor = ref(false)
|
||||
const settingsStore = useSettings()
|
||||
const { updateOnboardingStep } = useOnboarding('learning')
|
||||
let autoSaveInterval
|
||||
let showSuccessMessage = false
|
||||
|
||||
@@ -395,10 +395,8 @@ const createNewLesson = () => {
|
||||
{
|
||||
onSuccess() {
|
||||
capture('lesson_created')
|
||||
updateOnboardingStep('create_first_lesson')
|
||||
showToast('Success', 'Lesson created successfully', 'check')
|
||||
/* if (!settingsStore.onboardingDetails.data?.is_onboarded) {
|
||||
settingsStore.onboardingDetails.reload()
|
||||
} */
|
||||
lessonDetails.reload()
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user