diff --git a/client/src/components/cockpit/mentor/AssignmentItem.vue b/client/src/components/cockpit/mentor/AssignmentItem.vue new file mode 100644 index 00000000..c11fa437 --- /dev/null +++ b/client/src/components/cockpit/mentor/AssignmentItem.vue @@ -0,0 +1,54 @@ + + + diff --git a/client/src/components/cockpit/mentor/PraxisAssignmentItem.vue b/client/src/components/cockpit/mentor/PraxisAssignmentItem.vue new file mode 100644 index 00000000..4cf9188c --- /dev/null +++ b/client/src/components/cockpit/mentor/PraxisAssignmentItem.vue @@ -0,0 +1,23 @@ + + + diff --git a/client/src/components/header/MainNavigationBar.vue b/client/src/components/header/MainNavigationBar.vue index 19a12cdd..8692418a 100644 --- a/client/src/components/header/MainNavigationBar.vue +++ b/client/src/components/header/MainNavigationBar.vue @@ -18,9 +18,12 @@ import CoursePreviewBar from "@/components/header/CoursePreviewBar.vue"; import { getCockpitUrl, getCompetenceNaviUrl, + getLearningMentorManagementUrl, getLearningPathUrl, getMediaCenterUrl, } from "@/utils/utils"; +import { useCockpitStore } from "@/stores/cockpit"; +import { VV_COURSE_IDS } from "@/constants"; log.debug("MainNavigationBar created"); @@ -31,6 +34,7 @@ const notificationsStore = useNotificationsStore(); const { inCockpit, inCompetenceProfile, + inLearningMentor, inCourse, inLearningPath, inMediaLibrary, @@ -66,6 +70,42 @@ const appointmentsUrl = computed(() => { onMounted(() => { log.debug("MainNavigationBar mounted"); }); + +const hasMediaLibraryMenu = computed(() => { + if (useCockpitStore().hasMentorCockpitType) { + return false; + } + return inCourse() && Boolean(courseSessionsStore.currentCourseSession); +}); + +const hasCockpitMenu = computed(() => { + return courseSessionsStore.currentCourseSessionHasCockpit; +}); + +const hasPreviewMenu = computed(() => { + return useCockpitStore().hasExpertCockpitType; +}); + +const hasAppointmentsMenu = computed(() => { + if (useCockpitStore().hasMentorCockpitType) { + return false; + } + return userStore.loggedIn; +}); + +const hasNotificationsMenu = computed(() => { + return userStore.loggedIn; +}); + +const hasMentorManagementMenu = computed(() => { + if (courseSessionsStore.currentCourseSessionHasCockpit) { + return false; + } + + // learning mentor management is only available for VV courses + const currentCourseId = courseSessionsStore.currentCourseSession?.course.id || ""; + return inCourse() && VV_COURSE_IDS.includes(currentCourseId); +}); @@ -196,10 +255,10 @@ onMounted(() => {
{ { -