From 13581389c0dc0e7982628edee7c975bda673bd1e Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Mon, 2 Oct 2023 13:53:39 +0200 Subject: [PATCH] fix: navigation --- .../components/header/MainNavigationBar.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/client/src/components/header/MainNavigationBar.vue b/client/src/components/header/MainNavigationBar.vue index 75792952..e58a89a6 100644 --- a/client/src/components/header/MainNavigationBar.vue +++ b/client/src/components/header/MainNavigationBar.vue @@ -29,7 +29,7 @@ const { inCourse, inLearningPath, inMediaLibrary, - inDueDates, + inAppointments, } = useRouteLookups(); const { t } = useTranslation(); @@ -49,6 +49,15 @@ const selectedCourseSessionTitle = computed(() => { return courseSessionsStore.currentCourseSession?.title; }); +const appointmentsUrl = computed(() => { + const currentCourseSession = courseSessionsStore.currentCourseSession; + if (currentCourseSession) { + return `/course/${currentCourseSession.course.slug}/appointments`; + } else { + return `/appointments`; + } +}); + onMounted(() => { log.debug("MainNavigationBar mounted"); }); @@ -167,12 +176,12 @@ onMounted(() => {
- +