diff --git a/komga-webui/src/components/DropZone.vue b/komga-webui/src/components/DropZone.vue index 4353abb4b..d95d0a44b 100644 --- a/komga-webui/src/components/DropZone.vue +++ b/komga-webui/src/components/DropZone.vue @@ -1,7 +1,7 @@ @@ -25,6 +25,9 @@ export default Vue.extend({ this.$emit('on-input-change', Array.from(selectedFiles)) } }, + reset() { + (this.$refs.input as HTMLInputElement).value = '' + }, }, }) diff --git a/komga-webui/src/components/dialogs/EditSeriesDialog.vue b/komga-webui/src/components/dialogs/EditSeriesDialog.vue index 8481e748f..2a32954f9 100644 --- a/komga-webui/src/components/dialogs/EditSeriesDialog.vue +++ b/komga-webui/src/components/dialogs/EditSeriesDialog.vue @@ -323,7 +323,7 @@ - + @@ -665,7 +665,7 @@ export default Vue.extend({ if (this.single && this.poster.uploadQueue.length > 0) { const series = this.series as SeriesDto let hadErrors = false - for (const file of this.poster.uploadQueue) { + for (const file of this.poster.uploadQueue.slice()) { try { await this.$komgaSeries.uploadThumbnail(series.id, file, file.name === this.poster.selectedThumbnail) this.deleteThumbnail(file) @@ -716,6 +716,8 @@ export default Vue.extend({ } } } + + (this.$refs.thumbnailsUpload as any).reset() }, async getThumbnails(series: SeriesDto | SeriesDto[]) { if (Array.isArray(series)) return @@ -752,7 +754,7 @@ export default Vue.extend({ this.poster.uploadQueue.splice(index, 1) } if (item.name === this.poster.selectedThumbnail) { - this.selectThumbnail(this.poster.seriesThumbnails.find(x => x.selected)) + this.poster.selectedThumbnail = '' } } else { // if thumbnail was marked for deletion, unmark it