From 8edaca12e6d866372e97f69f9dbbe1634e36843b Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Tue, 25 Feb 2025 10:35:35 +0100 Subject: [PATCH] fix(uploader): do not show progress if upload is cancelled Signed-off-by: skjnldsv --- lib/components/UploadPicker.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/components/UploadPicker.vue b/lib/components/UploadPicker.vue index ead99f2e..abdd02c4 100644 --- a/lib/components/UploadPicker.vue +++ b/lib/components/UploadPicker.vue @@ -306,7 +306,8 @@ export default defineComponent({ return this.queue?.filter((upload: Upload) => upload.status === UploadStatus.FAILED).length !== 0 }, isUploading(): boolean { - return this.queue?.length > 0 + // also ignore cancelled uploads + return this.queue?.filter((upload: Upload) => upload.status !== UploadStatus.CANCELLED).length !== 0 }, isAssembling(): boolean { return this.queue?.filter((upload: Upload) => upload.status === UploadStatus.ASSEMBLING).length !== 0