Skip to content
Snippets Groups Projects
Commit 1e3c4d7d authored by Farbod Zamani's avatar Farbod Zamani Committed by Jan-Hendrik Willms
Browse files

Biest 1292

Closes #1292

Merge request studip/studip!970
parent 41b8f932
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
<courseware-block-edit
v-if="canEdit && showEdit"
:block="block"
@store="$emit('storeEdit')"
@store="prepareStoreEdit"
@close="closeEdit"
>
<template #edit>
......@@ -256,7 +256,7 @@ export default {
let sections = container.attributes.payload.sections;
// lock parent container
await this.lockObject({ id: containerId, type: 'courseware-containers' });
await this.lockObject({ id: containerId, type: 'courseware-containers' });
// update container information
for (let i = 0; i < sections.length; i++) {
for (let j = 0; j < sections[i].blocks.length; j++) {
......@@ -277,6 +277,13 @@ export default {
containerId: containerId,
});
},
prepareStoreEdit() {
// storeEdit is only emitted when the block is not in deleting process.
if (!this.showDeleteDialog) {
this.$emit('storeEdit');
}
}
},
};
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment