Skip to content
Snippets Groups Projects
Commit b9753c6a authored by Ron Lucke's avatar Ron Lucke
Browse files

Courseware: Blöcke landen bei Doppelklick unter "nicht zugewiesene Inhalte"

Closes #4403

Merge request studip/studip!3287
parent e7192bc1
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ export default { ...@@ -35,6 +35,7 @@ export default {
data() { data() {
return { return {
showInfo: false, showInfo: false,
addInProgress: false,
}; };
}, },
computed: { computed: {
...@@ -77,13 +78,17 @@ export default { ...@@ -77,13 +78,17 @@ export default {
setAdderStorage: 'coursewareBlockAdder', setAdderStorage: 'coursewareBlockAdder',
}), }),
async addBlock() { async addBlock() {
this.setAdderStorage({ if (!this.addInProgress) {
container: this.blockAdder.container, this.addInProgress = true;
section: this.blockAdder.section, this.setAdderStorage({
type: this.type , container: this.blockAdder.container,
position: false section: this.blockAdder.section,
}); type: this.type ,
this.addNewBlock(); position: false
});
await this.addNewBlock();
this.addInProgress = false;
}
}, },
toggleFavItem() { toggleFavItem() {
if (this.blockTypeIsFav) { if (this.blockTypeIsFav) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment