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 { ...@@ -313,10 +313,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);
}, },
...@@ -327,13 +329,17 @@ export default { ...@@ -327,13 +329,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.
Please register or to comment