Fix resumableupload issue
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2019-09-16 16:58:57 +02:00
parent d7310dc378
commit bb20ffff58

View File

@ -53,7 +53,7 @@ export class ResumableFileUploadService implements OnDestroy{
handleState(state:UploadState) { handleState(state:UploadState) {
switch(state.status) { switch(state.status) {
case "added": { case "queue": {
this.files.push(new File(state)); this.files.push(new File(state));
this.isClosed=false; this.isClosed=false;
};break; };break;
@ -70,8 +70,8 @@ export class ResumableFileUploadService implements OnDestroy{
var parts = state.url.split("/"); var parts = state.url.split("/");
file.itemCode = parts[parts.length-1]; file.itemCode = parts[parts.length-1];
file.progress = (state.progress?state.progress:0); file.progress = (state.progress?state.progress:0);
file.success=true;
} }
file.success=true;
};break; };break;
case "error": { case "error": {
var file =this.files.find((f) => f.identifier == state.uploadId ) var file =this.files.find((f) => f.identifier == state.uploadId )