diff --git a/client/src/pages/cockpit/CockpitParentPage.vue b/client/src/pages/cockpit/CockpitParentPage.vue index 984f1c2d..a0f1663a 100644 --- a/client/src/pages/cockpit/CockpitParentPage.vue +++ b/client/src/pages/cockpit/CockpitParentPage.vue @@ -22,8 +22,8 @@ onMounted(async () => { log.debug("CockpitParentPage mounted", props.courseSlug); try { - await cockpitStore.loadCourseSessionUsers(courseSession.value.id); - cockpitStore.courseSessionUsers?.forEach((csu) => { + const members = await cockpitStore.loadCourseSessionMembers(courseSession.value.id); + members.forEach((csu) => { competenceStore.loadCompetenceProfilePage( props.courseSlug + "-competencenavi-competences", csu.user_id @@ -31,7 +31,11 @@ onMounted(async () => { learningPathStore.loadLearningPath(props.courseSlug + "-lp", csu.user_id); }); - learningPathStore.loadLearningPath(props.courseSlug + "-lp", useUserStore().id); + await learningPathStore.loadLearningPath( + props.courseSlug + "-lp", + useUserStore().id + ); + await cockpitStore.loadCircles(props.courseSlug, courseSession.value.id); } catch (error) { log.error(error); } diff --git a/client/src/pages/cockpit/CockpitUserCirclePage.vue b/client/src/pages/cockpit/CockpitUserCirclePage.vue index 4d3b922f..12d66b67 100644 --- a/client/src/pages/cockpit/CockpitUserCirclePage.vue +++ b/client/src/pages/cockpit/CockpitUserCirclePage.vue @@ -19,7 +19,7 @@ onMounted(async () => { }); const user = computed(() => { - return cockpitStore.courseSessionUsers?.find((csu) => csu.user_id === props.userId); + return cockpitStore.courseSessionMembers?.find((csu) => csu.user_id === props.userId); }); diff --git a/client/src/pages/cockpit/CockpitUserProfilePage.vue b/client/src/pages/cockpit/CockpitUserProfilePage.vue index 360350cf..d78609a6 100644 --- a/client/src/pages/cockpit/CockpitUserProfilePage.vue +++ b/client/src/pages/cockpit/CockpitUserProfilePage.vue @@ -28,7 +28,7 @@ const learningPath = computed(() => { }); const user = computed(() => { - return cockpitStore.courseSessionUsers?.find((csu) => csu.user_id === props.userId); + return cockpitStore.courseSessionMembers?.find((csu) => csu.user_id === props.userId); }); function setActiveClasses(isActive: boolean) { diff --git a/client/src/pages/cockpit/assignmentsPage/AssignmentDetails.vue b/client/src/pages/cockpit/assignmentsPage/AssignmentDetails.vue index d343d7c8..bd3d1b74 100644 --- a/client/src/pages/cockpit/assignmentsPage/AssignmentDetails.vue +++ b/client/src/pages/cockpit/assignmentsPage/AssignmentDetails.vue @@ -85,10 +85,10 @@ const assignmentDetail = computed(() => /> -
{{ $t("general.circles") }}:
-- {{ selectedCirclesTitles[i] }} -
-- {{ userCountStatusForCircle(csu.user_id, circle).FAIL }} -
-- {{ userCountStatusForCircle(csu.user_id, circle).SUCCESS }} -
-- {{ userCountStatusForCircle(csu.user_id, circle).UNKNOWN }} -
-+ {{ cockpitStore.selectedCircle.name }} +
++ {{ userCountStatusForCircle(csu.user_id).FAIL }} +
+ {{ userCountStatusForCircle(csu.user_id).SUCCESS }} +
++ {{ userCountStatusForCircle(csu.user_id).UNKNOWN }} +
+