| 106 | } |
| 107 | |
| 108 | refresh () { |
| 109 | if (!(this.simulatorsLeaderboardData.numberOfGamesInQueue > 0)) { return } // Queue-based scoring is currently not active anyway, so don't keep checking this until we fix it. |
| 110 | const success = numberOfGamesInQueue => { |
| 111 | if (this.destroyed) { return } |
| 112 | this.simulatorsLeaderboardData.numberOfGamesInQueue = numberOfGamesInQueue |
| 113 | return $('#games-in-queue').text(numberOfGamesInQueue) |
| 114 | } |
| 115 | return $.ajax('/db/level/-/ladder-match-queue-count', { cache: false, success }) |
| 116 | } |
| 117 | |
| 118 | updateSimulationStatus (simulationStatus, sessions) { |
| 119 | if (simulationStatus === 'Fetching simulation data!') { |