diff --git a/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue b/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue index b1c31c88..fe8bbd27 100644 --- a/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue +++ b/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue @@ -2,7 +2,7 @@ import ItButton from "@/components/ui/ItButton.vue"; import ItCheckbox from "@/components/ui/ItCheckbox.vue"; import { ref } from "vue"; -import { bustItGetCache, useCSRFFetch } from "@/fetchHelpers"; +import { bustItGetCache } from "@/fetchHelpers"; import { useUserStore } from "@/stores/user"; import eventBus from "@/utils/eventBus"; import log from "loglevel"; @@ -12,9 +12,8 @@ import { useMutation } from "@urql/vue"; import { UPSERT_ASSIGNMENT_COMPLETION_MUTATION } from "@/graphql/mutations"; import type { Assignment } from "@/types"; import DateEmbedding from "@/components/dueDates/DateEmbedding.vue"; -import { useCurrentCourseSession } from "@/composables"; - -const currentCourseSession = useCurrentCourseSession(); +import { useLearningMentors } from "@/composables"; +import NoMentorInformationPanel from "@/components/mentor/NoMentorInformationPanel.vue"; const props = defineProps<{ submissionDeadlineStart?: string | null; @@ -29,10 +28,7 @@ const upsertAssignmentCompletionMutation = useMutation( UPSERT_ASSIGNMENT_COMPLETION_MUTATION ); -const { data: learningMentors } = useCSRFFetch( - `/api/mentor/${props.courseSessionId}/mentors` -).json(); - +const learningMentors = useLearningMentors().learningMentors; const selectedLearningMentor = ref(); const onSubmit = async () => { @@ -85,27 +81,7 @@ const onSubmit = async () => {
diff --git a/client/src/components/mentor/LearningMentorSelector.vue b/client/src/components/mentor/LearningMentorSelector.vue
deleted file mode 100644
index c4fdc832..00000000
--- a/client/src/components/mentor/LearningMentorSelector.vue
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
+ {{
+ $t(
+ "a.Du kannst deine Selbsteinschätzung mit deiner Lernbegleitung teilen, damit sie eine Fremdeinschätzung vornimmt."
+ )
+ }}
+
+ {{ $t("a.Selbsteinschätzung teilen") }}
+
+ {{
+ $t("a.Selbsteinschätzung mit MENTOR_NAME teilen", {
+ MENTOR_NAME: selectedLearningMentor.first_name,
+ })
+ }}
+ {{ mentors }} Hello
-
- ABGABE SCREEN
- LUID: {{ learningUnit.id }}
+
+ {{ $t("a.Selbsteinschätzung teilen") }}
+
+
- {{ pc.title }} =>
- {{ pc.completion_status }}
-
+
+
- [[EDIT]]
-