Merged in bugfix/VBV-715-falscher-link-auf-praxisbildner-dashboard (pull request #411)
VBV-715 Falscher Link auf Praxisbildner Dashboard Approved-by: Christian Cueni
This commit is contained in:
commit
d4680157ac
|
|
@ -285,3 +285,6 @@ git-crypt-encrypted-files-check.txt
|
|||
/client/src/gql/dist/minifiedSchema.json
|
||||
|
||||
/sftptest/
|
||||
|
||||
# BabelEdit translation software
|
||||
/client/bable_edit.babel
|
||||
|
|
|
|||
|
|
@ -65,6 +65,13 @@ const actionButtonProps = computed<{ href: string; text: string; cyKey: string }
|
|||
cyKey: "lm-dashboard-link",
|
||||
};
|
||||
}
|
||||
if (props.courseConfig?.role_key === "MentorUK") {
|
||||
return {
|
||||
href: getLearningPathUrl(props.courseConfig?.course_slug),
|
||||
text: "a.Teilnehmer Vorschau",
|
||||
cyKey: "attendance-dashboard-link",
|
||||
};
|
||||
}
|
||||
return {
|
||||
href: getLearningPathUrl(props.courseConfig?.course_slug),
|
||||
text: "Weiter lernen",
|
||||
|
|
@ -75,7 +82,6 @@ const actionButtonProps = computed<{ href: string; text: string; cyKey: string }
|
|||
|
||||
function hasActionButton(): boolean {
|
||||
return (
|
||||
props.courseConfig?.role_key !== "MentorUK" &&
|
||||
props.courseConfig?.role_key !== "Ausbildungsverantwortlicher" &&
|
||||
props.courseConfig?.role_key !== "Berufsbildner"
|
||||
);
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ const summary = computed(() => {
|
|||
return mentorAssignmentData.value?.assignments ?? null;
|
||||
});
|
||||
|
||||
const courseSlug = computed(() => mentorAssignmentData.value?.course_slug);
|
||||
|
||||
onMounted(async () => {
|
||||
mentorAssignmentData.value = await fetchMentorCompetenceSummary(
|
||||
props.courseId,
|
||||
|
|
@ -29,7 +31,7 @@ onMounted(async () => {
|
|||
<template>
|
||||
<div v-if="summary" class="w-[325px]">
|
||||
<BaseBox
|
||||
:details-link="`/dashboard/persons-competence?course=${props.courseId}`"
|
||||
:details-link="`/statistic/${props.agentRole}/${courseSlug}/assignment`"
|
||||
data-cy="dashboard.mentor.competenceSummary"
|
||||
>
|
||||
<template #title>{{ $t("Kompetenznachweise") }}</template>
|
||||
|
|
|
|||
|
|
@ -264,6 +264,7 @@
|
|||
"a.Teilnehmer": "Teilnehmer",
|
||||
"a.Teilnehmer im": "Teilnehmer im",
|
||||
"a.Teilnehmer nach Zulassungsprofilen im": "Teilnehmer nach Zulassungsprofilen im",
|
||||
"a.Teilnehmer Vorschau": "Teilnehmer Vorschau",
|
||||
"a.Telefonnummer": "Telefonnummer",
|
||||
"a.Telefonnummer hat das falsche Format": "Telefonnummer hat das falsche Format",
|
||||
"a.Termin": "Termin",
|
||||
|
|
|
|||
|
|
@ -264,6 +264,7 @@
|
|||
"a.Teilnehmer": "Participants",
|
||||
"a.Teilnehmer im": "Participants en",
|
||||
"a.Teilnehmer nach Zulassungsprofilen im": "Participants par profil d'admission en",
|
||||
"a.Teilnehmer Vorschau": "Aperçu des participants",
|
||||
"a.Telefonnummer": "Numéro de téléphone",
|
||||
"a.Telefonnummer hat das falsche Format": "Le numéro de téléphone n'est pas au bon format",
|
||||
"a.Termin": "Date",
|
||||
|
|
|
|||
|
|
@ -264,6 +264,7 @@
|
|||
"a.Teilnehmer": "Partecipanti",
|
||||
"a.Teilnehmer im": "I partecipanti al",
|
||||
"a.Teilnehmer nach Zulassungsprofilen im": "Partecipanti per profilo di ammissione nel",
|
||||
"a.Teilnehmer Vorschau": "Anteprima dei partecipanti",
|
||||
"a.Telefonnummer": "Numero di telefono",
|
||||
"a.Telefonnummer hat das falsche Format": "Il numero di telefono ha un formato sbagliato",
|
||||
"a.Termin": "Data",
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ class GetDashboardConfig(TestCase):
|
|||
role="MentorUK",
|
||||
is_uk=True,
|
||||
is_vv=False,
|
||||
has_preview=True,
|
||||
has_preview=False,
|
||||
widgets=["MentorPersonWidget", "MentorCompetenceWidget"],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,6 @@ def has_preview(role_key: RoleKeyType) -> bool:
|
|||
role_key
|
||||
in [
|
||||
RoleKeyType.MENTOR_VV,
|
||||
RoleKeyType.MENTOR_UK,
|
||||
RoleKeyType.BERUFSBILDNER,
|
||||
RoleKeyType.TRAINING_RESPONSIBLE,
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue