From 92d96f47107fd447fc308c5c011243ff2867b1ca Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 2 May 2024 11:15:16 +0200 Subject: [PATCH] Add label texts in order --- client/src/components/dashboard/CoursePanel.vue | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/client/src/components/dashboard/CoursePanel.vue b/client/src/components/dashboard/CoursePanel.vue index 5a6e8091..dca6810d 100644 --- a/client/src/components/dashboard/CoursePanel.vue +++ b/client/src/components/dashboard/CoursePanel.vue @@ -42,25 +42,21 @@ function hasWidget(widget: WidgetType) { const actionButtonProps = computed<{ href: string; text: string; cyKey: string }>( () => { - if (props.courseConfig?.role_key === "Member") { - return { - href: getLearningPathUrl(props.courseConfig?.course_slug), - text: "Weiter lernen", - cyKey: "progress-dashboard-continue-course-link", - }; - } else if (props.courseConfig?.role_key === "Trainer") { + if (props.courseConfig?.role_key === "Supervisor") { return { href: getCockpitUrl(props.courseConfig?.course_slug), text: "Cockpit anschauen", cyKey: "cockpit-dashboard-link", }; - } else if (props.courseConfig?.role_key === "Supervisor") { + } + if (props.courseConfig?.role_key === "Trainer") { return { href: getCockpitUrl(props.courseConfig?.course_slug), text: "Cockpit anschauen", cyKey: "cockpit-dashboard-link", }; - } else if (props.courseConfig?.role_key === "MentorVV") { + } + if (props.courseConfig?.role_key === "MentorVV") { return { href: getLearningMentorUrl(props.courseConfig?.course_slug), text: "a.Übersicht anschauen",