()
| 446 | } |
| 447 | |
| 448 | updateProgress() { |
| 449 | if (!this.current) { |
| 450 | this.uiData.value = { |
| 451 | files: [this.uploaded, this.uploaded + this.files.size], |
| 452 | suspending: this.status == "suspend" |
| 453 | }; |
| 454 | return; |
| 455 | } |
| 456 | const currentFile = this.files.get(this.current)!; |
| 457 | let progress = currentFile.uploadedSize; |
| 458 | |
| 459 | this.uiData.value = { |
| 460 | current: [progress, currentFile.file.size], |
| 461 | currentFile: currentFile.file.name, |
| 462 | files: [this.uploaded + (this.current ? 1 : 0), this.uploaded + this.files.size], |
| 463 | suspending: this.status == "suspend", |
| 464 | instanceInfo: currentFile.instanceInfo |
| 465 | }; |
| 466 | } |
| 467 | |
| 468 | getFileNth(id: string): number { |
| 469 | for (const string of this.files.keys()) { |
no test coverage detected