Skip to content
Snippets Groups Projects
Commit c3456b0f authored by Julian's avatar Julian
Browse files

Display a correct title of the weekday when deleting all slots of a day

parent 096be7bd
No related branches found
No related tags found
1 merge request!2Resolve "Frontend for Models"
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
<v-icon>mdi-content-copy</v-icon> <v-icon>mdi-content-copy</v-icon>
</v-list-item-icon> </v-list-item-icon>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ <v-list-item-title>
$t("actions.copy_last_configuration") {{ $t("actions.copy_last_configuration") }}
}}</v-list-item-title> </v-list-item-title>
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>
</template> </template>
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<template #title> <template #title>
{{ {{
$t("lesrooster.slot.confirm_delete_multiple_slots", { $t("lesrooster.slot.confirm_delete_multiple_slots", {
day: $t("weekdays." + weekdays[0]), day: $t("weekdays." + weekdayToDelete),
}) })
}} }}
</template> </template>
...@@ -277,6 +277,7 @@ export default { ...@@ -277,6 +277,7 @@ export default {
deleteMultipleDialog: false, deleteMultipleDialog: false,
itemToDelete: null, itemToDelete: null,
itemsToDelete: [], itemsToDelete: [],
weekdayToDelete: "",
createBreaks: false, createBreaks: false,
}; };
}, },
...@@ -438,6 +439,7 @@ export default { ...@@ -438,6 +439,7 @@ export default {
this.itemsToDelete = this.items.filter( this.itemsToDelete = this.items.filter(
(slot) => slot.weekday === weekday (slot) => slot.weekday === weekday
); );
this.weekdayToDelete = weekday;
this.deleteMultipleDialog = true; this.deleteMultipleDialog = true;
}, },
copyFromGrid(existingTimeGrid) { copyFromGrid(existingTimeGrid) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment