diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-23 21:42:30 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-23 21:42:30 +0100 |
commit | 0723ddd1d494e95925719252cb7402d6f01e3179 (patch) | |
tree | e4882b0e4b7ebc73630f42d3726517006c8b6079 /sw-ui-kt/src/main/kotlin/org | |
parent | Add whether game can be started in LobbyDTO (diff) | |
download | seven-wonders-0723ddd1d494e95925719252cb7402d6f01e3179.tar.gz seven-wonders-0723ddd1d494e95925719252cb7402d6f01e3179.tar.bz2 seven-wonders-0723ddd1d494e95925719252cb7402d6f01e3179.zip |
Remove hardcoded min players in Lobby component
Diffstat (limited to 'sw-ui-kt/src/main/kotlin/org')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt index dab3c87f..de9d1454 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/components/lobby/Lobby.kt @@ -41,7 +41,7 @@ class LobbyPresenter(props: LobbyProps) : RComponent<LobbyProps, RState>(props) large = true, intent = Intent.PRIMARY, icon = "play", - disabled = props.players.size < 3, + disabled = !currentGame.canBeStarted, onClick = { props.startGame() } ) } |