From 14e8d5da4971d232c2c97fd7ffff100a56f884f2 Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Wed, 13 Dec 2023 15:43:26 +0100 Subject: [PATCH] feat: mentor has no medialibrary --- .../components/header/MainNavigationBar.vue | 13 +++++++-- client/src/components/header/MobileMenu.vue | 3 ++- .../pages/cockpit/cockpitPage/CockpitPage.vue | 11 +++----- client/src/router/guards.ts | 5 ++++ client/src/stores/cockpit.ts | 27 ++++++++++++++----- 5 files changed, 42 insertions(+), 17 deletions(-) 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); +}); -
  • +