From c977fcf51092682df21e3f487a423f09dfa58be5 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 2 May 2024 10:19:47 +0200 Subject: [PATCH 1/6] Fix c2a for expert --- client/src/components/dashboard/CoursePanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/dashboard/CoursePanel.vue b/client/src/components/dashboard/CoursePanel.vue index d53b58c4..5a6e8091 100644 --- a/client/src/components/dashboard/CoursePanel.vue +++ b/client/src/components/dashboard/CoursePanel.vue @@ -48,7 +48,7 @@ const actionButtonProps = computed<{ href: string; text: string; cyKey: string } text: "Weiter lernen", cyKey: "progress-dashboard-continue-course-link", }; - } else if (props.courseConfig?.role_key === "Expert") { + } else if (props.courseConfig?.role_key === "Trainer") { return { href: getCockpitUrl(props.courseConfig?.course_slug), text: "Cockpit anschauen", From 94f61c2ef6d881f42650dfaf7e3596ca3a827c37 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 2 May 2024 10:20:16 +0200 Subject: [PATCH 2/6] Fix texts --- .../components/header/MainNavigationBar.vue | 7 +++- client/src/components/header/MobileMenu.vue | 11 ++++- .../components/learningMentor/MyMentors.vue | 20 ++++++++- .../NoMentorInformationPanel.vue | 16 ++++++- client/src/composables.ts | 42 ------------------- 5 files changed, 46 insertions(+), 50 deletions(-) diff --git a/client/src/components/header/MainNavigationBar.vue b/client/src/components/header/MainNavigationBar.vue index 64e9a6fe..33d264cb 100644 --- a/client/src/components/header/MainNavigationBar.vue +++ b/client/src/components/header/MainNavigationBar.vue @@ -22,7 +22,6 @@ import { getLearningPathUrl, getMediaCenterUrl, } from "@/utils/utils"; -import { useMentorTexts } from "@/composables"; log.debug("MainNavigationBar created"); @@ -123,7 +122,11 @@ const hasLearningMentor = computed(() => { return courseSession.actions.includes("learning-mentor"); }); -const mentorTabTitle = useMentorTexts().mentorTabTitle; +const mentorTabTitle = computed(() => + courseSessionsStore.currentCourseSession?.course.configuration.is_uk + ? "a.Praxisbildner" + : "a.Lernbegleitung" +);