From 4360bb55f744e486b18bc6f8b693d139b5553091 Mon Sep 17 00:00:00 2001 From: Janis Date: Thu, 27 Nov 2025 09:18:16 +0100 Subject: [PATCH] chore(api): fixes --- knockoutwhist | 2 +- .../app/views/ingame/ingame.scala.html | 15 ++++++++++----- knockoutwhistweb/public/javascripts/events.js | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/knockoutwhist b/knockoutwhist index c5dd02a..d833932 160000 --- a/knockoutwhist +++ b/knockoutwhist @@ -1 +1 @@ -Subproject commit c5dd02a5e826eaa6a6fa07c0847f94f9868709a6 +Subproject commit d833932f1652554db5a49d77033d3016051d23f9 diff --git a/knockoutwhistweb/app/views/ingame/ingame.scala.html b/knockoutwhistweb/app/views/ingame/ingame.scala.html index 8d437e7..ddecd8a 100644 --- a/knockoutwhistweb/app/views/ingame/ingame.scala.html +++ b/knockoutwhistweb/app/views/ingame/ingame.scala.html @@ -15,16 +15,21 @@ }else {

---

} - -
- @if(gamelobby.getLogic.getPlayerQueue.isDefined && gamelobby.getLogic.getCurrentMatch && !TrickUtil.isOver(gamelobby.getLogic.getCurrentMatch.get, gamelobby.getLogic.getPlayerQueue.get)) { + @if(gamelobby.getLogic.getPlayerQueue.isDefined && gamelobby.getLogic.getCurrentMatch && !TrickUtil.isOver(gamelobby.getLogic.getCurrentMatch.get, gamelobby.getLogic.getPlayerQueue.get)) { +

Next Players

+
@for(nextplayer <- gamelobby.getLogic.getPlayerQueue.get.duplicate()) {

@nextplayer @if(nextplayer.isInDogLife) { 🐶 }

} - } -
+
+ } else { + +
+ +
+ }
diff --git a/knockoutwhistweb/public/javascripts/events.js b/knockoutwhistweb/public/javascripts/events.js index dbb07c4..54c5ce8 100644 --- a/knockoutwhistweb/public/javascripts/events.js +++ b/knockoutwhistweb/public/javascripts/events.js @@ -281,7 +281,7 @@ function receiveTurnEvent(eventData) { const currentPlayerNameContainer = $('#current-player-name'); const nextPlayersContainer = $('#next-players-container'); - const nextPlayerText = $('#next-players-section'); + const nextPlayerText = $('#next-players-text'); let currentPlayerName = currentPlayer.name; if (currentPlayer.dog) {