From a9c387a3cc4b1466718791c7eca52ad90c01a1b4 Mon Sep 17 00:00:00 2001 From: Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> Date: Thu, 12 May 2022 09:58:49 +0000 Subject: [PATCH] Fix #892. Closes #892 Merge request studip/studip!502 --- .../components/courseware/CoursewareManagerElement.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/vue/components/courseware/CoursewareManagerElement.vue b/resources/vue/components/courseware/CoursewareManagerElement.vue index 021c8a6e702..01858aea7ad 100755 --- a/resources/vue/components/courseware/CoursewareManagerElement.vue +++ b/resources/vue/components/courseware/CoursewareManagerElement.vue @@ -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; -- GitLab