Fix player/spectator counters

This commit is contained in:
Hamcha 2019-06-11 16:12:12 +02:00
parent 6d9d03dc44
commit 9700951a3e
Signed by: hamcha
GPG key ID: A40413D21021EAEE
2 changed files with 4 additions and 3 deletions

View file

@ -87,8 +87,10 @@ export default class RoomList extends Vue {
game_id: room.game_id, game_id: room.game_id,
name: room.name, name: room.name,
creator: room.creator, creator: room.creator,
players: room.current_players, players: room.current_players ? room.current_players : 0,
spectators: room.current_spectators, spectators: room.current_spectators
? room.current_spectators
: 0,
can_spectate: room.can_spectate ? "Yes" : "No" can_spectate: room.can_spectate ? "Yes" : "No"
}); });
} }

View file

@ -1,4 +1,3 @@
<template> <template>
<div class="container"> <div class="container">
<b-table striped hoverable :data="rows" :columns="columns"></b-table> <b-table striped hoverable :data="rows" :columns="columns"></b-table>