Skip to content
Snippets Groups Projects
Commit a9c387a3 authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer Committed by Jan-Hendrik Willms
Browse files

Fix #892.

Closes #892

Merge request studip/studip!502
parent 0fa3034d
No related branches found
No related tags found
No related merge requests found
......@@ -313,10 +313,12 @@ export default {
lockObject: 'lockObject',
unlockObject: 'unlockObject',
sortContainersInStructualElements: 'sortContainersInStructualElements',
sortChildrenInStructualElements: 'sortChildrenInStructualElements'
sortChildrenInStructualElements: 'sortChildrenInStructualElements',
setFilingData: 'cwManagerFilingData',
}),
selectChapter(target) {
this.resetFilingData();
this.$emit('selectElement', target);
},
......@@ -327,13 +329,17 @@ export default {
afterInsertCompletion() {
this.$nextTick(() => {
// will run after $emit is done
this.$store.dispatch('cwManagerFilingData', {});
this.resetFilingData();
setTimeout(() => {
this.insertingInProgress = false;
}, 250);
});
},
resetFilingData() {
this.setFilingData({});
},
showFailedCopyProcessCompanion() {
this.copyingFailed = true;
this.insertingInProgress = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment