X-Git-Url: https://git.auder.net/%3C?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=c9c34f348b68f25de69a3a97b88d3d2092b20577;hb=3a2a7b5fd3c6bfd0752838094c27e1fb6172d109;hp=8183ff40f6e0247df4be9c7fe8844ed2591733ac;hpb=602d6befd30793111d3fda6e733f73e08d8b7a30;p=vchess.git
diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue
index 8183ff40..c9c34f34 100644
--- a/client/src/views/MyGames.vue
+++ b/client/src/views/MyGames.vue
@@ -3,58 +3,251 @@ 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'") {{ st.tr["Live games"] }}
- button(@click="display='corr'") {{ st.tr["Correspondance games"] }}
- GameList(v-show="display=='live'" :games="filterGames('live')"
- @show-game="showGame")
- GameList(v-show="display=='corr'" :games="filterGames('corr')"
- @show-game="showGame")
+ button.tabbtn#liveGames(@click="setDisplay('live',$event)")
+ | {{ st.tr["Live games"] }}
+ button.tabbtn#corrGames(@click="setDisplay('corr',$event)")
+ | {{ st.tr["Correspondance games"] }}
+ GameList(
+ v-show="display=='live'"
+ :games="liveGames"
+ @show-game="showGame"
+ @abortgame="abortGame"
+ )
+ GameList(
+ v-show="display=='corr'"
+ :games="corrGames"
+ @show-game="showGame"
+ @abortgame="abortGame"
+ )
+
+