diff --git a/client/src/components/learningMentor/MyMentees.vue b/client/src/components/learningMentor/MyMentees.vue index bcc7b0cd..861cac08 100644 --- a/client/src/components/learningMentor/MyMentees.vue +++ b/client/src/components/learningMentor/MyMentees.vue @@ -2,9 +2,10 @@ import { useLearningMentees } from "@/services/learningMentees"; import { useCurrentCourseSession } from "@/composables"; import { useCSRFFetch } from "@/fetchHelpers"; +import { computed } from "vue"; const courseSession = useCurrentCourseSession(); -const { summary, fetchData } = useLearningMentees(courseSession.value.id); +const { isLoading, summary, fetchData } = useLearningMentees(courseSession.value.id); const removeMyMentee = async (menteeId: string) => { await useCSRFFetch( @@ -12,6 +13,12 @@ const removeMyMentee = async (menteeId: string) => { ).delete(); fetchData(); }; + +const noMenteesText = computed(() => + courseSession.value.course.configuration.is_uk + ? "a.Aktuell begleitest du niemanden als Praxisbildner." + : "a.Aktuell begleitest du niemanden als Lernbegleitung." +); -
-

{{ $t("a.Personen, die du begleitest") }}

-
- - {{ $t("a.Aktuell begleitest du niemanden als Lernbegleitung.") }} -
+
+
+

{{ $t("a.Personen, die du begleitest") }}

+
+ + {{ $t(noMenteesText) }}
diff --git a/client/src/pages/learningMentor/mentor/MentorParticipantsPage.vue b/client/src/pages/learningMentor/mentor/MentorParticipantsPage.vue index 8eea6870..1e5e7507 100644 --- a/client/src/pages/learningMentor/mentor/MentorParticipantsPage.vue +++ b/client/src/pages/learningMentor/mentor/MentorParticipantsPage.vue @@ -10,8 +10,11 @@ const isMyMentorsVisible = computed(() => courseSession.value.actions.includes("learning-mentor::edit-mentors") ); -const isMyMenteesVisible = computed(() => - courseSession.value.actions.includes("learning-mentor::guide-members") +const isMyMenteesVisible = computed( + () => + courseSession.value.actions.includes("learning-mentor::guide-members") || + courseSession.value.actions.includes("is_expert") || + courseSession.value.actions.includes("is_supervisor") ); diff --git a/client/src/services/dashboard.ts b/client/src/services/dashboard.ts index 60beb348..2abd9374 100644 --- a/client/src/services/dashboard.ts +++ b/client/src/services/dashboard.ts @@ -24,7 +24,7 @@ export type DashboardPersonRoleType = export type DashboardRoleKeyType = | "Supervisor" - | "Expert" + | "Trainer" | "Member" | "MentorUK" | "MentorVV";