diff options
Diffstat (limited to 'sw-ui/src')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt index da799e3c..8ecc6f62 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt @@ -2,6 +2,7 @@ package org.luxons.sevenwonders.ui.components.lobby import com.palantir.blueprintjs.Intent import com.palantir.blueprintjs.bpButton +import com.palantir.blueprintjs.bpNonIdealState import org.luxons.sevenwonders.model.api.LobbyDTO import org.luxons.sevenwonders.model.api.PlayerDTO import org.luxons.sevenwonders.ui.redux.RequestAddBot @@ -35,7 +36,7 @@ class LobbyPresenter(props: LobbyProps) : RComponent<LobbyProps, RState>(props) val currentGame = props.currentGame val currentPlayer = props.currentPlayer if (currentGame == null || currentPlayer == null) { - div { +"Error: no current game." } + bpNonIdealState(icon = "error", title = "Error: no current game") return } div { |