summaryrefslogtreecommitdiff
path: root/sw-ui/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-31 11:16:37 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-31 11:16:37 +0200
commit506455a8f1b9444fd62e539081f1912cfadb55ae (patch)
tree1be5c484a42052e60cba030f44d0e915cfedeaaa /sw-ui/src/main/kotlin/org/luxons
parentCapitalize wonder names (diff)
downloadseven-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.kt3
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 {
bgstack15