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(() =>
|
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="">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue