(null);
function updateCompletionData() {
if (userId && courseSessionId) {
@@ -209,6 +227,13 @@ export function useLearningPathWithCompletion(
});
});
}
+
+ // FIXME calculate nextLearningContent
+ if (lpQueryResult.circles.value?.length) {
+ nextLearningContent.value = circleFlatLearningContents(
+ lpQueryResult.circles.value[0]
+ )[0];
+ }
}
async function markCompletion(
@@ -226,5 +251,10 @@ export function useLearningPathWithCompletion(
}
}
- return { ...lpQueryResult, updateCompletionData, markCompletion };
+ return {
+ ...lpQueryResult,
+ updateCompletionData,
+ markCompletion,
+ nextLearningContent,
+ };
}
diff --git a/client/src/pages/DashboardPage.vue b/client/src/pages/DashboardPage.vue
index 535246bc..c5f964bc 100644
--- a/client/src/pages/DashboardPage.vue
+++ b/client/src/pages/DashboardPage.vue
@@ -50,6 +50,7 @@ const getNextStepLink = (courseSession: CourseSession) => {
diff --git a/client/src/pages/learningPath/learningPathPage/LearningPathListView.vue b/client/src/pages/learningPath/learningPathPage/LearningPathListView.vue
index 5e339dc1..a2c1bde3 100644
--- a/client/src/pages/learningPath/learningPathPage/LearningPathListView.vue
+++ b/client/src/pages/learningPath/learningPathPage/LearningPathListView.vue
@@ -1,11 +1,11 @@