From 5e8554acdada40aabb5c75f17b431dd7b6724d2d Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Wed, 20 Sep 2023 16:38:45 +0200 Subject: [PATCH] feat: added preview bar --- .../components/header/CoursePreviewBar.vue | 7 ++- .../components/header/MainNavigationBar.vue | 47 +++++-------------- .../LearningContentContainer.vue | 5 ++ client/src/stores/courseSessions.ts | 23 +++++++++ 4 files changed, 44 insertions(+), 38 deletions(-) diff --git a/client/src/components/header/CoursePreviewBar.vue b/client/src/components/header/CoursePreviewBar.vue index 80de3595..2d19ee8b 100644 --- a/client/src/components/header/CoursePreviewBar.vue +++ b/client/src/components/header/CoursePreviewBar.vue @@ -16,10 +16,9 @@ const { t } = useTranslation();
- - - Vorschau: Teilnehmer ({{ courseSession.title }}) - + + {{ t("a.VorschauTeilnehmer") }} ({{ courseSession.title }}) +
{ return courseSessionsStore.currentCourseSession?.title; }); -const isTrainerInCourseSessionPreview = computed(() => { - // todo wip @livioso check if this is correct? - const isTrainer = - courseSessionsStore.currentCourseSession && - courseSessionsStore.currentCourseSessionHasCockpit; - return isTrainer && !inCockpit(); -}); - onMounted(() => { log.debug("MainNavigationBar mounted"); });