From 589337116ad3cfd68c71f8fd9a77d9d611a8ceaa Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 26 May 2025 09:59:05 +0530 Subject: [PATCH] fix: added dependencies for onboarding steps --- frontend/src/components/AppSidebar.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue index 2d1508b6..682a4447 100644 --- a/frontend/src/components/AppSidebar.vue +++ b/frontend/src/components/AppSidebar.vue @@ -434,6 +434,7 @@ const steps = reactive([ title: __('Add your first chapter'), icon: markRaw(h(FolderTree, iconProps)), completed: false, + dependsOn: 'create_first_course', onClick: async () => { minimize.value = true let course = await getFirstCourse() @@ -449,6 +450,7 @@ const steps = reactive([ title: __('Add your first lesson'), icon: markRaw(h(FileText, iconProps)), completed: false, + dependsOn: 'create_first_chapter', onClick: async () => { minimize.value = true let course = await getFirstCourse() @@ -467,6 +469,7 @@ const steps = reactive([ title: __('Create your first quiz'), icon: markRaw(h(CircleHelp, iconProps)), completed: false, + dependsOn: 'create_first_course', onClick: () => { minimize.value = true router.push({ name: 'Quizzes' }) @@ -498,6 +501,7 @@ const steps = reactive([ title: __('Add students to your batch'), icon: markRaw(h(UserPlus, iconProps)), completed: false, + dependsOn: 'create_first_batch', onClick: async () => { minimize.value = true let batch = await getFirstBatch() @@ -518,6 +522,7 @@ const steps = reactive([ title: __('Add courses to your batch'), icon: markRaw(h(BookText, iconProps)), completed: false, + dependsOn: 'create_first_batch', onClick: async () => { minimize.value = true let batch = await getFirstBatch()