Related to #4
This commit is contained in:
@@ -27,9 +27,17 @@ function killErika() {
|
||||
<div class="games-list-zone">
|
||||
<div v-for="g in goStore.lobby?.games">
|
||||
<button v-if="g" @click="join_game(g.uuid)">
|
||||
started:{{ g.started }}
|
||||
ended:{{ g.ended }}
|
||||
players:<span v-for="p in g.players">{{ p.username }},</span>
|
||||
<template v-if="!g.started">
|
||||
JOIN
|
||||
</template>
|
||||
<template v-if="g.started && !g.ended">
|
||||
SPECTATE
|
||||
</template>
|
||||
<template v-if="g.started && g.ended">
|
||||
GAME ENDED
|
||||
</template>
|
||||
<br>
|
||||
current players:<br><span v-for="p in g.players">{{ p.username }},</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user