diff --git a/client/src/components/header/MainNavigationBar.vue b/client/src/components/header/MainNavigationBar.vue index 8234380e..ac517904 100644 --- a/client/src/components/header/MainNavigationBar.vue +++ b/client/src/components/header/MainNavigationBar.vue @@ -22,6 +22,7 @@ import { getLearningPathUrl, getMediaCenterUrl, } from "@/utils/utils"; +import { useCockpitStore } from "@/stores/cockpit"; log.debug("MainNavigationBar created"); @@ -68,6 +69,13 @@ const appointmentsUrl = computed(() => { onMounted(() => { log.debug("MainNavigationBar mounted"); }); + +const hasMediaLibrary = computed(() => { + if (useCockpitStore().hasMentorCockpitType) { + return false; + } + return inCourse() && Boolean(courseSessionsStore.currentCourseSession); +}); -
  • +