Remove course specifc data from dashboard navbar
This commit is contained in:
parent
6b2628b333
commit
37758961b0
|
|
@ -104,7 +104,8 @@ const hasPreviewMenu = computed(() =>
|
|||
const hasAppointmentsMenu = computed(() =>
|
||||
Boolean(
|
||||
courseSessionsStore.currentCourseSession?.actions.includes("appointments") &&
|
||||
userStore.loggedIn
|
||||
userStore.loggedIn &&
|
||||
inCourse()
|
||||
)
|
||||
);
|
||||
|
||||
|
|
@ -130,6 +131,10 @@ const mentorTabTitle = computed(() =>
|
|||
? "a.Praxisbildner"
|
||||
: "a.Lernbegleitung"
|
||||
);
|
||||
|
||||
const hasSessionTitle = computed(() => {
|
||||
return courseSessionsStore.currentCourseSession?.title && inCourse();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
@ -334,7 +339,7 @@ const mentorTabTitle = computed(() =>
|
|||
</div>
|
||||
|
||||
<div
|
||||
v-if="selectedCourseSessionTitle"
|
||||
v-if="hasSessionTitle"
|
||||
class="nav-item hidden items-center lg:inline-flex"
|
||||
>
|
||||
<div class="">
|
||||
|
|
|
|||
Loading…
Reference in New Issue