diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsDialog.vue b/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsDialog.vue index a9f4fb0c7411407a5e98cdfe4a386f3b2c7cf678..3af1db58846f37b5e7e7837dba08a4468294269e 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsDialog.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsDialog.vue @@ -71,30 +71,6 @@ export default { return storedDocumentations; }, - // { - // optimisticResponse: { - // updateParticipationStatuses: { - // items: [ - // { - // id: participation.id, - // isOptimistic: true, - // relatedDocumentation: { - // id: this.documentation.id, - // __typename: "DocumentationType", - // }, - // absenceReason: value === "present" ? null : { - // id: value, - // name: "", - // shortName: "", - // __typename: "AbsenceReasonType", - // }, - // __typename: "ParticipationStatusType", - // }, - // ], - // __typename: "ParticipationStatusBatchPatchMutation", - // }, - // }, - // }, ); }, handleMultipleAction(absenceReasonId) { diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsTrigger.vue b/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsTrigger.vue index 739ff4217df2d82d1765381aae3543277f8f631a..572036c67955b3365bb46eb69f6ab41ee86cf074 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsTrigger.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/absences/ManageStudentsTrigger.vue @@ -41,8 +41,6 @@ export default { }, (storedDocumentations, incoming) => { // ID may be different now - console.log("incoming:", incoming); - return storedDocumentations.map((doc) => doc.id === this.documentation.id ? Object.assign(doc, incoming, { oldId: doc.id }) diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonNotes.vue b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonNotes.vue index 880e92f4c03eb41a042f1ace474611de0ab5617e..4c4c24675db1b86d042572c665023b8adc8c323e 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonNotes.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonNotes.vue @@ -7,16 +7,15 @@ import AbsenceReasonChip from "aleksis.apps.kolego/components/AbsenceReasonChip. class="d-flex align-center justify-space-between justify-md-end flex-wrap gap" > <v-chip dense color="success" outlined v-if="total > 0"> - {{ $t("alsijil.coursebook.present_number", { present, total })}} + {{ $t("alsijil.coursebook.present_number", { present, total }) }} </v-chip> <absence-reason-chip v-for="participation in absences" + :key="'absence-' + participation.id" :absence-reason="participation.absenceReason" dense > - <template #prepend> - {{ participation.person.fullName }}: - </template> + <template #prepend> {{ participation.person.fullName }}: </template> </absence-reason-chip> <manage-students-trigger v-bind="documentationPartProps" /> @@ -36,11 +35,15 @@ export default { return this.documentation.participations.length; }, present() { - return this.documentation.participations.filter(p => p.absenceReason === null).length; + return this.documentation.participations.filter( + (p) => p.absenceReason === null, + ).length; }, absences() { // Get all course attendants who have an absence reason - return this.documentation.participations.filter(p => p.absenceReason !== null); + return this.documentation.participations.filter( + (p) => p.absenceReason !== null, + ); }, }, };