X-Git-Url: https://git.auder.net/pieces/cr.svg?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=607925422e998d89c1006c54fb69f379e5499f3c;hb=0b0dc040acd01ff1855b159c2933cb2eff73b26d;hp=ddb689d0110a34f78a036e4041d5eadf73f8d4e4;hpb=4486a21e09c50f65da5d4c3648430cea1b19a0cc;p=vchess.git
diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue
index ddb689d0..60792542 100644
--- a/client/src/views/MyGames.vue
+++ b/client/src/views/MyGames.vue
@@ -1,5 +1,63 @@
- // TODO: AJAX call get corr games (all variants)
- // si dernier lastMove sur serveur n'est pas le mien et nextColor == moi, alors background orange
- // ==> background orange si à moi de jouer par corr (sur main index)
- // (helper: static fonction "GetNextCol()" dans base_rules.js)
+
+main
+ .row
+ .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
+ .button-group
+ button(@click="display='live'") Live games
+ button(@click="display='corr'") Correspondance games
+ GameList(v-show="display=='live'" :games="filterGames('live')"
+ @show-game="showGame")
+ GameList(v-show="display=='corr'" :games="filterGames('corr')"
+ @show-game="showGame")
+
+
+
+