X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2FgameList.js;h=fcbb39a224bbf2f79c00ff1dfc5f5cbd1ad5e6e2;hb=214dfe16b01836fb19291ebf209bb7035993bafe;hp=371c89b9abcb04d0d240399c09049577806d2497;hpb=3ca7a846ae7bc5d8f7c628417418534f3c92593a;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 namesCadence +
+ {{ p.name }} + {{ g.mainTime }} + {{ g.increment }}{{ g.score }}
+ `, +});