feat: onboarding steps

This commit is contained in:
Jannat Patel
2024-11-22 16:28:28 +05:30
parent 7cafaf5cbc
commit 58f109e79c
7 changed files with 176 additions and 0 deletions

View File

@@ -81,9 +81,11 @@ import { defineModel, reactive, watch } from 'vue'
import { showToast, getFileSize } from '@/utils/'
import { capture } from '@/telemetry'
import { FileText, X } from 'lucide-vue-next'
import { useSettings } from '@/stores/settings'
const show = defineModel()
const outline = defineModel('outline')
const settingsStore = useSettings()
const props = defineProps({
course: {
@@ -143,6 +145,9 @@ const addChapter = async (close) => {
{
onSuccess(data) {
cleanChapter()
if (!settingsStore.onboardingDetails.data?.is_onboarded) {
settingsStore.onboardingDetails.reload()
}
outline.value.reload()
showToast(
__('Success'),