Fix isuploading flag
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2019-07-19 10:07:01 +02:00
parent 455562aa90
commit e502591176

View File

@ -52,13 +52,13 @@ export class ResumableFileUploadService implements OnDestroy{
} }
handleState(state:UploadState) { handleState(state:UploadState) {
this.isUploading = true;
switch(state.status) { switch(state.status) {
case "added": { case "added": {
this.files.push(new File(state)); this.files.push(new File(state));
this.isClosed=false; this.isClosed=false;
};break; };break;
case "uploading": { case "uploading": {
this.isUploading = true;
var file =this.files.find((f) => f.identifier == state.uploadId ) var file =this.files.find((f) => f.identifier == state.uploadId )
if(file) { if(file) {
file.progress = (state.progress?state.progress:0); file.progress = (state.progress?state.progress:0);