X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FgameList.js;fp=public%2Fjavascripts%2Fcomponents%2FgameList.js;h=9b669826ae303913c629ca2e6eeb4d373d0415b0;hp=9eb1f7d07cf04003eca9f033c5b60c6000ddc2d7;hb=ab4f4bf258ed68d8292b64d81babde03cddbae3c;hpb=00f2759e16ec73fa1ecd0254a9c9018530d71892 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 }}