increase backed up counter only for success
This commit is contained in:
parent
6ea54f98bd
commit
9f0584a58f
|
@ -265,6 +265,7 @@ class UploadService {
|
||||||
await this.uploadFile(uploadFile);
|
await this.uploadFile(uploadFile);
|
||||||
uploadFile = null;
|
uploadFile = null;
|
||||||
this.fileProgress.delete(rawFile.name);
|
this.fileProgress.delete(rawFile.name);
|
||||||
|
this.filesCompleted++;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError(e, 'file upload failed');
|
logError(e, 'file upload failed');
|
||||||
|
@ -273,7 +274,6 @@ class UploadService {
|
||||||
this.fileProgress.set(rawFile.name, FILE_UPLOAD_FAILED);
|
this.fileProgress.set(rawFile.name, FILE_UPLOAD_FAILED);
|
||||||
handleError(e);
|
handleError(e);
|
||||||
}
|
}
|
||||||
this.filesCompleted++;
|
|
||||||
this.updateProgressBarUI();
|
this.updateProgressBarUI();
|
||||||
|
|
||||||
if (this.filesToBeUploaded.length > 0) {
|
if (this.filesToBeUploaded.length > 0) {
|
||||||
|
|
Loading…
Reference in a new issue