X-Git-Url: https://git.auder.net/assets/bundles/framework/images/grey_magnifier.png?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=e0914f67c1ed63f07e9afdcca5bf295baaa34606;hb=db1f1f9adb920605c7a16b060a7737e54636ee08;hp=d601bf04a1dec492edd148a10905d0b0f39f8c15;hpb=afd3240d89a2f6191fe9426960dc0c1667b40c77;p=vchess.git
diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue
index d601bf04..e0914f67 100644
--- a/client/src/views/MyGames.vue
+++ b/client/src/views/MyGames.vue
@@ -3,66 +3,115 @@ 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")
+ 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"
+ )
+ GameList(
+ v-show="display=='corr'"
+ :games="corrGames"
+ @show-game="showGame"
+ )
-
-