diff --git a/client/src/composables.ts b/client/src/composables.ts index 645fa01e..ca61ea2a 100644 --- a/client/src/composables.ts +++ b/client/src/composables.ts @@ -587,10 +587,24 @@ export function useCourseStatisticsv2(courseId: string) { } }; + const courseSessionName = (courseSessionId: string) => { + return courseStatistics.value.course_session_properties.sessions.find( + (session) => session.id === courseSessionId + )?.name; + }; + + const circleMeta = (circleId: string) => { + return courseStatistics.value.course_session_properties.circles.find( + (circle) => circle.id === circleId + ); + }; + onMounted(fetchData); return { courseStatistics, loading, + courseSessionName, + circleMeta, }; } diff --git a/client/src/pages/dashboard/statistic/AssignmentList.vue b/client/src/pages/dashboard/statistic/AssignmentList.vue index 5d59c62d..179a2843 100644 --- a/client/src/pages/dashboard/statistic/AssignmentList.vue +++ b/client/src/pages/dashboard/statistic/AssignmentList.vue @@ -1,13 +1,11 @@