X-Git-Url: https://git.auder.net/images/diag_mark.svg?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FgameList.js;h=9eb1f7d07cf04003eca9f033c5b60c6000ddc2d7;hb=60d9063fdfcd4b7628fbc0e0fc594f083bda8761;hp=371c89b9abcb04d0d240399c09049577806d2497;hpb=a3ab5fdb6e9d614f55bb7ecef5887ddb7875df4b;p=vchess.git diff --git a/public/javascripts/components/gameList.js b/public/javascripts/components/gameList.js index 371c89b9..9eb1f7d0 100644 --- a/public/javascripts/components/gameList.js +++ b/public/javascripts/components/gameList.js @@ -1,5 +1,24 @@ -// TODO -//My games : (tabs) -//mes parties corr en cours -//mes parties (toutes) terminées (possibilité de supprimer) -//parties importées +Vue.component("my-game-list", { + props: ["games"], + computed: { + showResult: function() { + this.games.length > 0 && this.games[0].score != "*"; + }, + }, + template: ` + + + + + + + + + + + +
Players namesCadenceResult
+ {{ p.name }} + {{ g.mainTime }} + {{ g.increment }}{{ g.score }}
+ `, +});