From 9f636abc7dfdd257e82d99351c9a4c52532c3384 Mon Sep 17 00:00:00 2001
From: Hangzhi Yu <hangzhi@protonmail.com>
Date: Wed, 11 Dec 2024 11:37:35 +0100
Subject: [PATCH] Reformat

---
 .../documentation/LessonInformation.vue       | 23 ++++++++-----------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue b/aleksis/apps/alsijil/frontend/components/coursebook/documentation/LessonInformation.vue
index 706e8f14a..d0675ddca 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;
     },
-- 
GitLab