From c3456b0f3ba6c8949f9cc3a42d2ab84545415d86 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Wed, 11 Oct 2023 18:31:59 +0200
Subject: [PATCH] Display a correct title of the weekday when deleting all
 slots of a day

---
 .../frontend/components/lesson_raster/LessonRaster.vue | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue b/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue
index fe43eafe..967407cc 100644
--- a/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue
+++ b/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue
@@ -60,9 +60,9 @@
                   <v-icon>mdi-content-copy</v-icon>
                 </v-list-item-icon>
                 <v-list-item-content>
-                  <v-list-item-title>{{
-                    $t("actions.copy_last_configuration")
-                  }}</v-list-item-title>
+                  <v-list-item-title>
+                    {{ $t("actions.copy_last_configuration") }}
+                  </v-list-item-title>
                 </v-list-item-content>
               </v-list-item>
             </template>
@@ -202,7 +202,7 @@
       <template #title>
         {{
           $t("lesrooster.slot.confirm_delete_multiple_slots", {
-            day: $t("weekdays." + weekdays[0]),
+            day: $t("weekdays." + weekdayToDelete),
           })
         }}
       </template>
@@ -277,6 +277,7 @@ export default {
       deleteMultipleDialog: false,
       itemToDelete: null,
       itemsToDelete: [],
+      weekdayToDelete: "",
       createBreaks: false,
     };
   },
@@ -438,6 +439,7 @@ export default {
       this.itemsToDelete = this.items.filter(
         (slot) => slot.weekday === weekday
       );
+      this.weekdayToDelete = weekday;
       this.deleteMultipleDialog = true;
     },
     copyFromGrid(existingTimeGrid) {
-- 
GitLab