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) {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user