refactor(ui): Fixed UI Code Smell (#19)

Reviewed-on: #19
Reviewed-by: lq64 <lq@blackhole.local>
This commit is contained in:
2025-10-23 11:08:08 +02:00
parent 92e4851219
commit 63689b7a26

View File

@@ -14,7 +14,7 @@
</div> </div>
<div id="firstCardObject"> <div id="firstCardObject">
<p>First Card</p> <p>First Card</p>
@if(logic.getCurrentTrick.get.firstCard != None) { @if(logic.getCurrentTrick.get.firstCard.isDefined) {
@util.WebUIUtils.cardtoImage(logic.getCurrentTrick.get.firstCard.get) @util.WebUIUtils.cardtoImage(logic.getCurrentTrick.get.firstCard.get)
} else { } else {
@views.html.output.card.apply("images/cards/1B.png")("Blank Card") @views.html.output.card.apply("images/cards/1B.png")("Blank Card")
@@ -23,7 +23,7 @@
</div> </div>
<p>@logic.getCurrentPlayer.get has to play a card!</p> <p>@logic.getCurrentPlayer.get has to play a card!</p>
@if(!logic.getCurrentTrick.get.cards.isEmpty) { @if(logic.getCurrentTrick.get.cards.nonEmpty) {
<p>Cards played</p> <p>Cards played</p>
} else { } else {
<p id="invisible">Cards played</p> <p id="invisible">Cards played</p>