Fix isuploading flag
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
455562aa90
commit
e502591176
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user