Merge branch 'main' of codeberg.org:adrien-lsh/ft_transcendence
This commit is contained in:
@ -34,10 +34,7 @@ export default class extends AbstractAuthenticatedView {
|
||||
{
|
||||
if (data.detail === "game_found")
|
||||
{
|
||||
if (this.game_type_input.value == "pong")
|
||||
navigateTo(`/games/${data.game_type}/${data.game_id}`);
|
||||
else
|
||||
navigateTo(`/games/${data.game_type}/${data.game_id}`);
|
||||
navigateTo(`/games/${data.game_type}/${data.game_id}`);
|
||||
return;
|
||||
}
|
||||
this.display_data(data);
|
||||
@ -122,7 +119,7 @@ export default class extends AbstractAuthenticatedView {
|
||||
<option value='pong'>Pong</option>
|
||||
<option value='tictactoe'>ticTacToe</option>
|
||||
</select>
|
||||
<label for='game-type-input'>${lang.get("game_typeChoice")}</label>
|
||||
<label for='game-type-input'>${lang.get("gamemodeChoice")}</label>
|
||||
</div>
|
||||
<div class='form-floating mb-2' id='nb-players-div'>
|
||||
<input type='number' min='2' value='2' max='4' class='form-control' id='nb-players-input' placeholder='${lang.get("matchmakingNbPlayers")}'>
|
||||
|
Reference in New Issue
Block a user