X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FgameList.js;h=9b669826ae303913c629ca2e6eeb4d373d0415b0;hb=b955c65b942d09d24b5c3bed0d755d4f2f8f71f1;hp=9eb1f7d07cf04003eca9f033c5b60c6000ddc2d7;hpb=60d9063fdfcd4b7628fbc0e0fc594f083bda8761;p=vchess.git diff --git a/public/javascripts/components/gameList.js b/public/javascripts/components/gameList.js index 9eb1f7d0..9b669826 100644 --- a/public/javascripts/components/gameList.js +++ b/public/javascripts/components/gameList.js @@ -1,18 +1,23 @@ Vue.component("my-game-list", { props: ["games"], computed: { + showVariant: function() { + return this.games.length > 0 && !!this.games[0].vname; + }, showResult: function() { - this.games.length > 0 && this.games[0].score != "*"; + return this.games.length > 0 && this.games[0].score != "*"; }, }, template: ` + +
Variant Players names Cadence Result
{{ g.vname }} {{ p.name }}