diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-31 11:16:37 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-31 11:16:37 +0200 |
commit | 506455a8f1b9444fd62e539081f1912cfadb55ae (patch) | |
tree | 1be5c484a42052e60cba030f44d0e915cfedeaaa /sw-ui/src/main/kotlin/org/luxons | |
parent | Capitalize wonder names (diff) | |
download | seven-wonders-506455a8f1b9444fd62e539081f1912cfadb55ae.tar.gz seven-wonders-506455a8f1b9444fd62e539081f1912cfadb55ae.tar.bz2 seven-wonders-506455a8f1b9444fd62e539081f1912cfadb55ae.zip |
Repalce plain error text by non-ideal state for lobby
Diffstat (limited to 'sw-ui/src/main/kotlin/org/luxons')
-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 { |