From 81126974f55b1debab1ec03ba81d8f94101085db Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 21 Jul 2020 18:39:51 +0200 Subject: [PATCH] After cancel a single file close the upload dialog --- .../resumable-file-upload/resumable-file-upload.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts b/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts index e515354..6c3ca1c 100644 --- a/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts +++ b/projects/common/src/fm/components/resumable-file-upload/resumable-file-upload.service.ts @@ -100,6 +100,9 @@ export class ResumableFileUploadService implements OnDestroy{ if (index > -1) { this.files.splice(index, 1); } + if(this.files.length==0) { + this.uploading = false; + } }; doClose = function () {