Commit 5081d2f8 authored by Johan Vervloet's avatar Johan Vervloet

Repeat player names at bottom of table, #134.

Closes #134.
parent decd75b9
Pipeline #127939954 passed with stages
in 4 minutes and 51 seconds
......@@ -11,6 +11,7 @@
### Changed
- Tried to bring more consistency to the API, #106, #132.
- Also show player names at bottom of table, #134.
## [0.5.1] - 2020-02-29
......
......@@ -4,7 +4,6 @@
<thead>
<tr>
<th>*</th><th>#</th>
<!-- FIXME: avoid magic number (3) -->
<th
v-for="(player, playerIndex) in orderedPlayers"
v-bind:class="{
......@@ -56,6 +55,26 @@
</tr>
-->
</tbody>
<!-- This is similar to thead; could use some refactoring -->
<tfoot>
<tr>
<th>*</th><th>#</th>
<th
v-for="(player, playerIndex) in orderedPlayers"
v-bind:class="{
'gone':(player.status === 'gone'),
'table-primary':(currentDealer === player.playerIdentifier)
}"
v-bind:data-playerid="player.playerIdentifier"
v-bind:key="playerIndex"
class="text-center"
>
{{ player.name }}
</th>
<th>{{ $t("note") }}</th>
</tr>
</tfoot>
</table>
</template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment