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 }>(
|
const actionButtonProps = computed<{ href: string; text: string; cyKey: string }>(
|
||||||
() => {
|
() => {
|
||||||
if (props.courseConfig?.role_key === "Member") {
|
if (props.courseConfig?.role_key === "Supervisor") {
|
||||||
return {
|
|
||||||
href: getLearningPathUrl(props.courseConfig?.course_slug),
|
|
||||||
text: "Weiter lernen",
|
|
||||||
cyKey: "progress-dashboard-continue-course-link",
|
|
||||||
};
|
|
||||||
} else if (props.courseConfig?.role_key === "Trainer") {
|
|
||||||
return {
|
return {
|
||||||
href: getCockpitUrl(props.courseConfig?.course_slug),
|
href: getCockpitUrl(props.courseConfig?.course_slug),
|
||||||
text: "Cockpit anschauen",
|
text: "Cockpit anschauen",
|
||||||
cyKey: "cockpit-dashboard-link",
|
cyKey: "cockpit-dashboard-link",
|
||||||
};
|
};
|
||||||
} else if (props.courseConfig?.role_key === "Supervisor") {
|
}
|
||||||
|
if (props.courseConfig?.role_key === "Trainer") {
|
||||||
return {
|
return {
|
||||||
href: getCockpitUrl(props.courseConfig?.course_slug),
|
href: getCockpitUrl(props.courseConfig?.course_slug),
|
||||||
text: "Cockpit anschauen",
|
text: "Cockpit anschauen",
|
||||||
cyKey: "cockpit-dashboard-link",
|
cyKey: "cockpit-dashboard-link",
|
||||||
};
|
};
|
||||||
} else if (props.courseConfig?.role_key === "MentorVV") {
|
}
|
||||||
|
if (props.courseConfig?.role_key === "MentorVV") {
|
||||||
return {
|
return {
|
||||||
href: getLearningMentorUrl(props.courseConfig?.course_slug),
|
href: getLearningMentorUrl(props.courseConfig?.course_slug),
|
||||||
text: "a.Übersicht anschauen",
|
text: "a.Übersicht anschauen",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue