Merge branch 'main' of codeberg.org:adrien-lsh/ft_transcendence

This commit is contained in:
Kbz-8
2024-05-06 18:19:36 +02:00
6 changed files with 9 additions and 7 deletions

View File

@ -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")}'>