|
|
|
|
@ -97,6 +97,7 @@ class LobbyScreen extends AbstractLobbyScreen { |
|
|
|
|
<InputField |
|
|
|
|
onChange = { this._onChangeDisplayName } |
|
|
|
|
placeHolder = { t('lobby.nameField') } |
|
|
|
|
testId = 'lobby.nameField' |
|
|
|
|
value = { displayName } /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -117,6 +118,7 @@ class LobbyScreen extends AbstractLobbyScreen { |
|
|
|
|
className = { _passwordJoinFailed ? 'error' : '' } |
|
|
|
|
onChange = { this._onChangePassword } |
|
|
|
|
placeHolder = { _passwordJoinFailed ? t('lobby.invalidPassword') : t('lobby.passwordField') } |
|
|
|
|
testId = 'lobby.password' |
|
|
|
|
type = 'password' |
|
|
|
|
value = { this.state.password } /> |
|
|
|
|
</div> |
|
|
|
|
@ -136,11 +138,13 @@ class LobbyScreen extends AbstractLobbyScreen { |
|
|
|
|
<ActionButton |
|
|
|
|
disabled = { !this.state.password } |
|
|
|
|
onClick = { this._onJoinWithPassword } |
|
|
|
|
testId = 'lobby.passwordJoinButton' |
|
|
|
|
type = 'primary'> |
|
|
|
|
{ t('lobby.passwordJoinButton') } |
|
|
|
|
</ActionButton> |
|
|
|
|
<ActionButton |
|
|
|
|
onClick = { this._onSwitchToKnockMode } |
|
|
|
|
testId = 'lobby.backToKnockModeButton' |
|
|
|
|
type = 'secondary'> |
|
|
|
|
{ t('lobby.backToKnockModeButton') } |
|
|
|
|
</ActionButton> |
|
|
|
|
@ -161,11 +165,13 @@ class LobbyScreen extends AbstractLobbyScreen { |
|
|
|
|
{ _knocking || <ActionButton |
|
|
|
|
disabled = { !this.state.displayName } |
|
|
|
|
onClick = { this._onAskToJoin } |
|
|
|
|
testId = 'lobby.knockButton' |
|
|
|
|
type = 'primary'> |
|
|
|
|
{ t('lobby.knockButton') } |
|
|
|
|
</ActionButton> } |
|
|
|
|
<ActionButton |
|
|
|
|
onClick = { this._onSwitchToPasswordMode } |
|
|
|
|
testId = 'lobby.enterPasswordButton' |
|
|
|
|
type = 'secondary'> |
|
|
|
|
{ t('lobby.enterPasswordButton') } |
|
|
|
|
</ActionButton> |
|
|
|
|
|