Remove course specifc data from dashboard navbar

This commit is contained in:
Christian Cueni 2024-08-05 14:12:02 +02:00
parent 6b2628b333
commit 37758961b0
1 changed files with 7 additions and 2 deletions

View File

@ -104,7 +104,8 @@ const hasPreviewMenu = computed(() =>
const hasAppointmentsMenu = computed(() => const hasAppointmentsMenu = computed(() =>
Boolean( Boolean(
courseSessionsStore.currentCourseSession?.actions.includes("appointments") && courseSessionsStore.currentCourseSession?.actions.includes("appointments") &&
userStore.loggedIn userStore.loggedIn &&
inCourse()
) )
); );
@ -130,6 +131,10 @@ const mentorTabTitle = computed(() =>
? "a.Praxisbildner" ? "a.Praxisbildner"
: "a.Lernbegleitung" : "a.Lernbegleitung"
); );
const hasSessionTitle = computed(() => {
return courseSessionsStore.currentCourseSession?.title && inCourse();
});
</script> </script>
<template> <template>
@ -334,7 +339,7 @@ const mentorTabTitle = computed(() =>
</div> </div>
<div <div
v-if="selectedCourseSessionTitle" v-if="hasSessionTitle"
class="nav-item hidden items-center lg:inline-flex" class="nav-item hidden items-center lg:inline-flex"
> >
<div class=""> <div class="">