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

Display loading symbols when changing participations with multi actions

parent 0a573394
No related branches found
No related tags found
1 merge request!360Resolve "Add absence management to course book student dialog"
......@@ -27,6 +27,7 @@ export default {
return {
dialog: false,
search: "",
loadSelected: false,
selected: [],
isExpanded: false,
};
......@@ -96,6 +97,16 @@ export default {
// },
);
},
handleMultipleAction(absenceReasonId) {
this.loadSelected = true;
this.sendToServer(this.selected, "absenceReason", absenceReasonId);
this.$once("save", this.resetMultipleAction);
},
resetMultipleAction() {
this.loadSelected = false;
this.$set(this.selected, []);
this.$refs.iterator.selected = [];
},
},
};
</script>
......@@ -141,6 +152,7 @@ export default {
</template>
<template #content>
<slide-iterator
ref="iterator"
v-model="selected"
:items="items"
:search="search"
......@@ -148,7 +160,9 @@ export default {
(item) => 'documentation-' + documentation.id + '-student-' + item.id
"
:is-expanded.sync="isExpanded"
:loading="loadingIndicator"
:loading="loadingIndicator || loadSelected"
:load-only-selected="loadSelected"
:disabled="loading"
>
<template #listItemContent="{ item }">
<v-list-item-title>
......
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