From df441d57a2bd7fa7ca4611fd66bbb76c36aa4927 Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Mon, 25 Mar 2024 16:55:56 +0100 Subject: [PATCH 1/2] fix: sample solution praxis assignment w/o mentor --- .../components/assignment/SampleSolution.vue | 36 +++++++++++++++++++ .../assignment/PraxisAssignmentSubmit.vue | 2 ++ .../assignment/AssignmentSubmissionView.vue | 31 ++-------------- 3 files changed, 40 insertions(+), 29 deletions(-) create mode 100644 client/src/components/assignment/SampleSolution.vue diff --git a/client/src/components/assignment/SampleSolution.vue b/client/src/components/assignment/SampleSolution.vue new file mode 100644 index 00000000..1b9d478b --- /dev/null +++ b/client/src/components/assignment/SampleSolution.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue b/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue index fe8bbd27..45b3cd0b 100644 --- a/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue +++ b/client/src/components/learningPath/assignment/PraxisAssignmentSubmit.vue @@ -14,6 +14,7 @@ import type { Assignment } from "@/types"; import DateEmbedding from "@/components/dueDates/DateEmbedding.vue"; import { useLearningMentors } from "@/composables"; import NoMentorInformationPanel from "@/components/mentor/NoMentorInformationPanel.vue"; +import SampleSolution from "@/components/assignment/SampleSolution.vue"; const props = defineProps<{ submissionDeadlineStart?: string | null; @@ -98,4 +99,5 @@ const onSubmit = async () => { >

{{ $t("a.Ergebnisse teilen") }}

+ diff --git a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue index 17a61f09..ebdd32de 100644 --- a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue +++ b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue @@ -1,5 +1,4 @@