Skip to content
Snippets Groups Projects
Commit f51980f4 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 e7f341eb
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>
...@@ -273,6 +273,13 @@ export default { ...@@ -273,6 +273,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