()
| 345 | } |
| 346 | |
| 347 | private startElapsedTicker(): void { |
| 348 | if (this.elapsedUpdateInterval !== null) { |
| 349 | return; |
| 350 | } |
| 351 | |
| 352 | this.elapsedUpdateInterval = window.setInterval(() => { |
| 353 | if (this.currentTrackedTasks.length === 0) { |
| 354 | this.stopElapsedTicker(); |
| 355 | return; |
| 356 | } |
| 357 | |
| 358 | this.renderStatusBar(this.currentTrackedTasks); |
| 359 | }, 1000); |
| 360 | } |
| 361 | |
| 362 | private stopElapsedTicker(): void { |
| 363 | if (this.elapsedUpdateInterval !== null) { |
no test coverage detected