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 {
data() {
return {
showInfo: false,
addInProgress: false,
};
},
computed: {
......@@ -77,13 +78,17 @@ export default {
setAdderStorage: 'coursewareBlockAdder',
}),
async addBlock() {
if (!this.addInProgress) {
this.addInProgress = true;
this.setAdderStorage({
container: this.blockAdder.container,
section: this.blockAdder.section,
type: this.type ,
position: false
});
this.addNewBlock();
await this.addNewBlock();
this.addInProgress = false;
}
},
toggleFavItem() {
if (this.blockTypeIsFav) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment