diff options
| author | Viktoria Wiebe <wiebe@elan-ev.de> | 2024-10-08 19:18:52 +0200 |
|---|---|---|
| committer | Viktoria Wiebe <wiebe@elan-ev.de> | 2024-10-08 19:21:38 +0200 |
| commit | 6eb65153e7224ae4258f0edbd5db75fed43330c3 (patch) | |
| tree | 5867d1db214e4bd7367823d84292d06eb9bb6a6e /resources | |
| parent | 843653673e747cf26f7ef244abdcdf5748803cf9 (diff) | |
re #2981 - cosmetically stop progress at 100% but the actual progress is still wrong (>100%)biest-2981
Diffstat (limited to 'resources')
| -rw-r--r-- | resources/vue/components/courseware/unit/CoursewareUnitItemDialogExport.vue | 5 | ||||
| -rw-r--r-- | resources/vue/mixins/courseware/export.js | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/resources/vue/components/courseware/unit/CoursewareUnitItemDialogExport.vue b/resources/vue/components/courseware/unit/CoursewareUnitItemDialogExport.vue index 08f0a21..3b0db35 100644 --- a/resources/vue/components/courseware/unit/CoursewareUnitItemDialogExport.vue +++ b/resources/vue/components/courseware/unit/CoursewareUnitItemDialogExport.vue @@ -63,7 +63,7 @@ export default { computed: { ...mapGetters({ context: 'context', - exportProgress: 'exportProgress', + exportProgressRaw: 'exportProgress', exportState: 'exportState', instanceById: 'courseware-instances/byId', structuralElementById: 'courseware-structural-elements/byId', @@ -86,6 +86,9 @@ export default { title() { return this.unitElement?.attributes?.title ?? ''; }, + exportProgress() { + return this.exportProgressRaw > 100 ? 100 : this.exportProgressRaw; + } }, methods: { ...mapActions({ diff --git a/resources/vue/mixins/courseware/export.js b/resources/vue/mixins/courseware/export.js index 3d9e33a..34f4321 100644 --- a/resources/vue/mixins/courseware/export.js +++ b/resources/vue/mixins/courseware/export.js @@ -106,6 +106,9 @@ export default { // load whole courseware nonetheless, only export relevant elements let elements = await this.allStructuralElements; + // TODO all struct elements are somehow wrong + console.log(root_element); + this.exportElementCounter = 0; if (withChildren) { this.elementCounter = this.countElements(elements); |
