mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-03-21 17:34:28 -05:00
Hide the upcoming cards option in the lobby page if there are none
This commit is contained in:
parent
a69d67556f
commit
eadd999bcb
|
|
@ -49,8 +49,10 @@ function onInitialise(callback: () => void) {
|
|||
|
||||
function initCardDatabase(cards: Card[]) {
|
||||
deckEditInitCardDatabase(cards);
|
||||
if (!cards.find(c => c.number < 0))
|
||||
if (!cards.find(c => c.number < 0)) {
|
||||
gameSetupAllowUpcomingCardsBox.parentElement!.hidden = true;
|
||||
lobbyAllowUpcomingCardsBox.parentElement!.hidden = true;
|
||||
}
|
||||
}
|
||||
function initStageDatabase(stages: Stage[]) {
|
||||
preGameInitStageDatabase(stages);
|
||||
|
|
@ -260,7 +262,7 @@ function setupWebSocket(gameID: string) {
|
|||
enterGameTimeout = null;
|
||||
}
|
||||
setLoadingMessage(null);
|
||||
if (!e.data) {
|
||||
if (!payload.data) {
|
||||
webSocket.close();
|
||||
alert('The game was not found.');
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ footer {
|
|||
margin-right: 1.5em;
|
||||
}
|
||||
|
||||
#lobbyPage label {
|
||||
#lobbyPage label:not([hidden]) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user