fix: hide kompetenznachweise for VV
This commit is contained in:
parent
35250bb93b
commit
04b944711e
|
|
@ -10,6 +10,7 @@ import type {
|
|||
} from "@/gql/graphql";
|
||||
import CompetenceSummaryBox from "@/components/dashboard/CompetenceSummaryBox.vue";
|
||||
import AssignmentProgressSummaryBox from "@/components/dashboard/AssignmentProgressSummaryBox.vue";
|
||||
import { VV_COURSE_IDS } from "@/constants";
|
||||
|
||||
const dashboardStore = useDashboardStore();
|
||||
|
||||
|
|
@ -46,6 +47,13 @@ const competenceCertificateUrl = computed(() => {
|
|||
const competenceCriteriaUrl = computed(() => {
|
||||
return `/course/${courseSlug.value}/competence/criteria?courseSessionId=${courseSessionProgress.value?.session_to_continue_id}`;
|
||||
});
|
||||
|
||||
const isVVCourse = computed(() => {
|
||||
if (!dashboardStore.currentDashboardConfig) {
|
||||
return false;
|
||||
}
|
||||
return VV_COURSE_IDS.includes(dashboardStore.currentDashboardConfig.id);
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -74,6 +82,7 @@ const competenceCriteriaUrl = computed(() => {
|
|||
</div>
|
||||
<div class="grid auto-rows-fr grid-cols-1 gap-8 xl:grid-cols-2">
|
||||
<AssignmentProgressSummaryBox
|
||||
v-if="!isVVCourse"
|
||||
:total-assignments="assignment.total_count"
|
||||
:achieved-points-count="assignment.points_achieved_count"
|
||||
:max-points-count="assignment.points_max_count"
|
||||
|
|
|
|||
Loading…
Reference in New Issue