X-Git-Url: https://git.auder.net/images/pieces/%22%20%20V.getPpath%28board%5Bi%5D%5Bj%5D%29%20%20%20%22.svg?a=blobdiff_plain;ds=sidebyside;f=public%2Fjavascripts%2Fcomponents%2FgameList.js;h=fcbb39a224bbf2f79c00ff1dfc5f5cbd1ad5e6e2;hb=214dfe16b01836fb19291ebf209bb7035993bafe;hp=371c89b9abcb04d0d240399c09049577806d2497;hpb=a3ab5fdb6e9d614f55bb7ecef5887ddb7875df4b;p=vchess.git diff --git a/public/javascripts/components/gameList.js b/public/javascripts/components/gameList.js index 371c89b9..fcbb39a2 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 names | +Cadence | ++ |
---|---|---|
+ {{ p.name }} + | +{{ g.mainTime }} + {{ g.increment }} | +{{ g.score }} | +