Add label texts in order
This commit is contained in:
parent
8c41d4ab03
commit
92d96f4710
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue