Fix isuploading flag
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

pull/1/head
Willem Dantuma 2019-07-19 10:07:01 +02:00
parent 455562aa90
commit e502591176
1 changed files with 1 additions and 1 deletions

View File

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