X-Git-Url: https://git.auder.net/images/pieces/Cwda/bt.svg?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=a48c8d4792027cbbb46e298e20e721fe1856adad;hb=5b18515f0b7dbfab8a2770d9b0fc7aace09267dc;hp=41cced56f55d8ba78c1d85fe1f6fb8b0ef656483;hpb=e2590fa82708a57d89b3c60266b2eb1a6e31a9ce;p=vchess.git
diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue
index 41cced56..a48c8d47 100644
--- a/client/src/views/MyGames.vue
+++ b/client/src/views/MyGames.vue
@@ -7,80 +7,409 @@ main
| {{ st.tr["Live games"] }}
button.tabbtn#corrGames(@click="setDisplay('corr',$event)")
| {{ st.tr["Correspondance games"] }}
+ button.tabbtn#importGames(@click="setDisplay('import',$event)")
+ | {{ st.tr["Imported games"] }}
GameList(
+ ref="livegames"
v-show="display=='live'"
:games="liveGames"
@show-game="showGame"
+ @abortgame="abortGame"
)
GameList(
v-show="display=='corr'"
+ ref="corrgames"
:games="corrGames"
@show-game="showGame"
+ @abortgame="abortGame"
)
+ UploadGame(
+ v-show="display=='import'"
+ @game-uploaded="addGameImport"
+ )
+ GameList(
+ v-show="display=='import'"
+ ref="importgames"
+ :games="importGames"
+ :show-both="true"
+ @show-game="showGame"
+ )
+ button#loadMoreBtn(
+ v-show="hasMore[display]"
+ @click="loadMore(display)"
+ )
+ | {{ st.tr["Load more"] }}
-
+
+
+