Add loading scores message
parent
36de9b3773
commit
9ea7162a0c
|
@ -59,9 +59,11 @@ async function loadTable() {
|
|||
|
||||
if(selectedTeamID && selectedDivisionID) {
|
||||
gamesTableHeader.textContent = `Scores for ${teamDropdown.options[teamDropdown.selectedIndex].text}`;
|
||||
|
||||
|
||||
noScoresMessage.textContent = "Loading scores...";
|
||||
const requestURL = `/fetch/index/scores?team=${+selectedTeamID}&division=${+selectedDivisionID}&season=${+selectedSeasonID}`;
|
||||
const gamesList = await (await fetch(requestURL)).json();
|
||||
noScoresMessage.textContent = "";
|
||||
if(gamesList.length > 0) {
|
||||
await setupGamesTableHeaders();
|
||||
|
||||
|
|
Reference in New Issue