diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue index 706e8f14a64f6191ae19583051edf7d61a9adc46..d0675ddca80e3909ee4992f68b5dba6a2a140def 100644 --- a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue +++ b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue @@ -16,14 +16,10 @@ import SubjectChipSelectField from "aleksis.apps.cursus/components/SubjectChipSe 'ml-2 slot-number-mobile': !largeGrid, }" > - <span - v-if="slotNumberStart == slotNumberEnd" - > + <span v-if="slotNumberStart == slotNumberEnd"> {{ slotNumberStart }}. </span> - <span v-else> - {{ slotNumberStart }}.–{{slotNumberEnd}}. - </span> + <span v-else> {{ slotNumberStart }}.–{{ slotNumberEnd }}. </span> </div> <div :class="{ 'text-right d-flex flex-column fit-content': largeGrid }"> <time :datetime="documentation.datetimeStart" class="text-no-wrap"> @@ -145,16 +141,17 @@ export default { (teacher) => teacher.id, ); // IDs of teachers of new substitution lesson - const newIds = this.documentation.teachers.map((teacher) => teacher.id); + const newIds = this.documentation.teachers.map( + (teacher) => teacher.id, + ); const allTeachers = new Set( - this.documentation.amends.amends.teachers.concat(this.documentation.teachers), + this.documentation.amends.amends.teachers.concat( + this.documentation.teachers, + ), ); let teachersWithStatus = Array.from(allTeachers).map((teacher) => { let removed = false; - if ( - !newIds.includes(teacher.id) && - oldIds.includes(teacher.id) - ) { + if (!newIds.includes(teacher.id) && oldIds.includes(teacher.id)) { // Mark teacher as being removed if they are only linked to the amended lesson removed = true; } @@ -162,7 +159,7 @@ export default { }); return teachersWithStatus; } - return this.documentation.amends.amends.teachers + return this.documentation.amends.amends.teachers; } return this.documentation.teachers; },