Skip to content
Snippets Groups Projects
Commit eac0fdfe authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer Committed by David Siegfried
Browse files

Fix #892.

Closes #892

Merge request studip/studip!502
parent 71954bba
No related branches found
No related tags found
No related merge requests found
...@@ -325,10 +325,12 @@ export default { ...@@ -325,10 +325,12 @@ export default {
lockObject: 'lockObject', lockObject: 'lockObject',
unlockObject: 'unlockObject', unlockObject: 'unlockObject',
sortContainersInStructualElements: 'sortContainersInStructualElements', sortContainersInStructualElements: 'sortContainersInStructualElements',
sortChildrenInStructualElements: 'sortChildrenInStructualElements' sortChildrenInStructualElements: 'sortChildrenInStructualElements',
setFilingData: 'cwManagerFilingData',
}), }),
selectChapter(target) { selectChapter(target) {
this.resetFilingData();
this.$emit('selectElement', target); this.$emit('selectElement', target);
}, },
...@@ -339,13 +341,17 @@ export default { ...@@ -339,13 +341,17 @@ export default {
afterInsertCompletion() { afterInsertCompletion() {
this.$nextTick(() => { this.$nextTick(() => {
// will run after $emit is done // will run after $emit is done
this.$store.dispatch('cwManagerFilingData', {}); this.resetFilingData();
setTimeout(() => { setTimeout(() => {
this.insertingInProgress = false; this.insertingInProgress = false;
}, 250); }, 250);
}); });
}, },
resetFilingData() {
this.setFilingData({});
},
showFailedCopyProcessCompanion() { showFailedCopyProcessCompanion() {
this.copyingFailed = true; this.copyingFailed = true;
this.insertingInProgress = false; 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