projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A few fixes, drop planned problems support (replaced by forum + mode analyze)
[vchess.git]
/
client
/
src
/
components
/
GameList.vue
diff --git
a/client/src/components/GameList.vue
b/client/src/components/GameList.vue
index
bb97a74
..
2b7f657
100644
(file)
--- a/
client/src/components/GameList.vue
+++ b/
client/src/components/GameList.vue
@@
-2,17
+2,16
@@
table
tr
th Variant
table
tr
th Variant
- th Players names
- th Cadence
+ th White
+ th Black
+ th Time control
th(v-if="showResult") Result
th(v-if="showResult") Result
- th(v-else) Moves count
tr(v-for="g in games" @click="$emit('show-game',g)")
td {{ g.vname }}
tr(v-for="g in games" @click="$emit('show-game',g)")
td {{ g.vname }}
- td
-
span(v-for="p in g.players") {{ p.name
}}
- td {{ g.
mainTime }} + {{ g.increment
}}
+ td
{{ g.players[0].name || "@nonymous" }}
+
td {{ g.players[1].name || "@nonymous"
}}
+ td {{ g.
timeControl
}}
td(v-if="showResult") {{ g.score }}
td(v-if="showResult") {{ g.score }}
- td(v-else) {{ g.movesCount }}
</template>
<script>
</template>
<script>
@@
-21,7
+20,7
@@
export default {
props: ["games"],
computed: {
showResult: function() {
props: ["games"],
computed: {
showResult: function() {
- return this.games.
length > 0 && this.games[0].score != "*"
;
+ return this.games.
some(g => g.score != "*")
;
},
},
};
},
},
};