diff --git a/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue b/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue index bc50cbe0b201cbb51f963c6eb2e893aba64e1175..989d5f49ad984d539bacd447107baeaf5ab694cf 100644 --- a/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue +++ b/aleksis/apps/lesrooster/frontend/components/lesson_raster/LessonRaster.vue @@ -171,15 +171,15 @@ :disabled=" $apollo.queries.items.loading || loading.main || loading[slot.weekday] " - @click:delete="deleteSingularSlot" + @click:delete="deleteSlot" @click:copy="copySingularSlotTodDay($event.item, $event.weekday)" :weekdays="weekdays" :id="'#slot-' + slot.id" /> <delete-dialog - :gql-mutation="deleteMutation" - :gql-query="$apollo.queries.items" + :gql-delete-mutation="deleteMutation" + :affected-query="$apollo.queries.items" :items="itemsToDelete" v-model="deleteDialog" > @@ -405,7 +405,7 @@ export default { }); }, deleteSlot(slot) { - this.itemToDeletes = [slot] + this.itemsToDelete = [slot] this.deleteDialog = true; }, deleteSlotsOfDay(weekday) {