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 b217bd18..c53358f9 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 { useMyLearningMentors } from "@/composables"; import NoMentorInformationPanel from "@/components/learningMentor/NoMentorInformationPanel.vue"; +import SampleSolution from "@/components/assignment/SampleSolution.vue"; const props = defineProps<{ submissionDeadlineStart?: string | null; @@ -98,4 +99,9 @@ const onSubmit = async () => { >

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

+ diff --git a/client/src/pages/competence/utils.ts b/client/src/pages/competence/utils.ts index 5ebc671f..9f5539c0 100644 --- a/client/src/pages/competence/utils.ts +++ b/client/src/pages/competence/utils.ts @@ -13,11 +13,11 @@ export function assignmentsMaxEvaluationPoints( } export function assignmentsUserPoints(assignments: CompetenceCertificateAssignment[]) { - return _.sum( + return +_.sum( assignments .filter((a) => a.completion?.completion_status === "EVALUATION_SUBMITTED") .map((a) => a.completion?.evaluation_points ?? 0) - ); + ).toFixed(1); } export function competenceCertificateProgressStatusCount( diff --git a/client/src/pages/learningPath/circlePage/LearningSequence.vue b/client/src/pages/learningPath/circlePage/LearningSequence.vue index 9862868c..7a2ae090 100644 --- a/client/src/pages/learningPath/circlePage/LearningSequence.vue +++ b/client/src/pages/learningPath/circlePage/LearningSequence.vue @@ -41,7 +41,6 @@ const someFinished = computed(() => { if (props.learningSequence) { return someFinishedInLearningSequence(props.learningSequence); } - return false; }); @@ -235,7 +234,11 @@ type LearninContentWithCompetenceCertificate = : 'no-status' " > - + {{ $t("a.Selbsteinschätzung") }} 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 @@