Unify praxisbildner dashboard with berufsbildner
This commit is contained in:
parent
2e6c305cea
commit
564d45341c
|
|
@ -285,3 +285,6 @@ git-crypt-encrypted-files-check.txt
|
||||||
/client/src/gql/dist/minifiedSchema.json
|
/client/src/gql/dist/minifiedSchema.json
|
||||||
|
|
||||||
/sftptest/
|
/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",
|
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 {
|
return {
|
||||||
href: getLearningPathUrl(props.courseConfig?.course_slug),
|
href: getLearningPathUrl(props.courseConfig?.course_slug),
|
||||||
text: "Weiter lernen",
|
text: "Weiter lernen",
|
||||||
|
|
@ -75,7 +82,6 @@ const actionButtonProps = computed<{ href: string; text: string; cyKey: string }
|
||||||
|
|
||||||
function hasActionButton(): boolean {
|
function hasActionButton(): boolean {
|
||||||
return (
|
return (
|
||||||
props.courseConfig?.role_key !== "MentorUK" &&
|
|
||||||
props.courseConfig?.role_key !== "Ausbildungsverantwortlicher" &&
|
props.courseConfig?.role_key !== "Ausbildungsverantwortlicher" &&
|
||||||
props.courseConfig?.role_key !== "Berufsbildner"
|
props.courseConfig?.role_key !== "Berufsbildner"
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ const summary = computed(() => {
|
||||||
return mentorAssignmentData.value?.assignments ?? null;
|
return mentorAssignmentData.value?.assignments ?? null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const courseSlug = computed(() => mentorAssignmentData.value?.course_slug);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
mentorAssignmentData.value = await fetchMentorCompetenceSummary(
|
mentorAssignmentData.value = await fetchMentorCompetenceSummary(
|
||||||
props.courseId,
|
props.courseId,
|
||||||
|
|
@ -29,7 +31,7 @@ onMounted(async () => {
|
||||||
<template>
|
<template>
|
||||||
<div v-if="summary" class="w-[325px]">
|
<div v-if="summary" class="w-[325px]">
|
||||||
<BaseBox
|
<BaseBox
|
||||||
:details-link="`/dashboard/persons-competence?course=${props.courseId}`"
|
:details-link="`/statistic/${props.agentRole}/${courseSlug}/assignment`"
|
||||||
data-cy="dashboard.mentor.competenceSummary"
|
data-cy="dashboard.mentor.competenceSummary"
|
||||||
>
|
>
|
||||||
<template #title>{{ $t("Kompetenznachweise") }}</template>
|
<template #title>{{ $t("Kompetenznachweise") }}</template>
|
||||||
|
|
|
||||||
|
|
@ -264,6 +264,7 @@
|
||||||
"a.Teilnehmer": "Teilnehmer",
|
"a.Teilnehmer": "Teilnehmer",
|
||||||
"a.Teilnehmer im": "Teilnehmer im",
|
"a.Teilnehmer im": "Teilnehmer im",
|
||||||
"a.Teilnehmer nach Zulassungsprofilen im": "Teilnehmer nach Zulassungsprofilen im",
|
"a.Teilnehmer nach Zulassungsprofilen im": "Teilnehmer nach Zulassungsprofilen im",
|
||||||
|
"a.Teilnehmer Vorschau": "Teilnehmer Vorschau",
|
||||||
"a.Telefonnummer": "Telefonnummer",
|
"a.Telefonnummer": "Telefonnummer",
|
||||||
"a.Telefonnummer hat das falsche Format": "Telefonnummer hat das falsche Format",
|
"a.Telefonnummer hat das falsche Format": "Telefonnummer hat das falsche Format",
|
||||||
"a.Termin": "Termin",
|
"a.Termin": "Termin",
|
||||||
|
|
|
||||||
|
|
@ -264,6 +264,7 @@
|
||||||
"a.Teilnehmer": "Participants",
|
"a.Teilnehmer": "Participants",
|
||||||
"a.Teilnehmer im": "Participants en",
|
"a.Teilnehmer im": "Participants en",
|
||||||
"a.Teilnehmer nach Zulassungsprofilen im": "Participants par profil d'admission 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": "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.Telefonnummer hat das falsche Format": "Le numéro de téléphone n'est pas au bon format",
|
||||||
"a.Termin": "Date",
|
"a.Termin": "Date",
|
||||||
|
|
|
||||||
|
|
@ -264,6 +264,7 @@
|
||||||
"a.Teilnehmer": "Partecipanti",
|
"a.Teilnehmer": "Partecipanti",
|
||||||
"a.Teilnehmer im": "I partecipanti al",
|
"a.Teilnehmer im": "I partecipanti al",
|
||||||
"a.Teilnehmer nach Zulassungsprofilen im": "Partecipanti per profilo di ammissione nel",
|
"a.Teilnehmer nach Zulassungsprofilen im": "Partecipanti per profilo di ammissione nel",
|
||||||
|
"a.Teilnehmer Vorschau": "Anteprima dei partecipanti",
|
||||||
"a.Telefonnummer": "Numero di telefono",
|
"a.Telefonnummer": "Numero di telefono",
|
||||||
"a.Telefonnummer hat das falsche Format": "Il numero di telefono ha un formato sbagliato",
|
"a.Telefonnummer hat das falsche Format": "Il numero di telefono ha un formato sbagliato",
|
||||||
"a.Termin": "Data",
|
"a.Termin": "Data",
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,6 @@ def has_preview(role_key: RoleKeyType) -> bool:
|
||||||
role_key
|
role_key
|
||||||
in [
|
in [
|
||||||
RoleKeyType.MENTOR_VV,
|
RoleKeyType.MENTOR_VV,
|
||||||
RoleKeyType.MENTOR_UK,
|
|
||||||
RoleKeyType.BERUFSBILDNER,
|
RoleKeyType.BERUFSBILDNER,
|
||||||
RoleKeyType.TRAINING_RESPONSIBLE,
|
RoleKeyType.TRAINING_RESPONSIBLE,
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue