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