From 506455a8f1b9444fd62e539081f1912cfadb55ae Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 31 May 2020 11:16:37 +0200 Subject: Repalce plain error text by non-ideal state for lobby --- .../main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw-ui') 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(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 { -- cgit