Skip to content

Commit

Permalink
fix(uploader): do not show progress if upload is cancelled
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Feb 25, 2025
1 parent a32ef57 commit 8edaca1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/UploadPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8edaca1

Please sign in to comment.