Cancel only not allready uploaded files
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2021-05-03 19:00:20 +02:00
parent 3504990708
commit 040b5b8c4d

View File

@ -109,7 +109,10 @@ export class ResumableFileUploadService implements OnDestroy{
}; };
doClose = function () { doClose = function () {
this.uploadService.control({action:'cancelAll'}); var toCancel = this.files.filter((f) => !f.success);
toCancel.forEach(f => {
this.uploadService.control({action:'cancel',uploadId:f.identifier});
});
this.files = new Array<File>(); this.files = new Array<File>();
this.isClosed = true; this.isClosed = true;
} }