X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=0d2fbf468a98de06d4f0f2e5743263876c4506d2;hp=5ab61cc3d1908d152bc57c9e497bbe76313056f0;hb=dac395887d96e2d642b209c6db6aaacc3ffacb34;hpb=5fde3a01497262862afc4cb4c9457d4e0ad69a4a diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index 5ab61cc3..0d2fbf46 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -23,14 +23,14 @@ import { store } from "@/store"; export default { name: "my-game-list", - props: ["games"], + props: ["games"], data: function() { return { st: store.state, showResult: false, }; }, - computed: { + computed: { sortedGames: function() { // Show in order: games where it's my turn, my running games, my games, other games this.showResult = this.games.some(g => g.score != "*");