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",