X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=a8c0dab664556e8f1811560756a21d2d6b3af645;hb=902378e6276422d38b45f7d79282c2462f1124b1;hp=bc9e883a5fac2df33ca388255b937de180478c3e;hpb=02c6ba4f6e6608ba120b121da516a195be3a1042;p=vchess.git diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index bc9e883a..a8c0dab6 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -83,8 +83,6 @@ export default { if (!!g.myColor) g.priority++; if (!!g.myTurn) g.priority++; } - // TODO: remove patch soon - if (!g.options) g.options = {} }); const deltaCreated = maxCreated - minCreated; return remGames.sort((g1, g2) => { @@ -117,6 +115,8 @@ export default { }, deleteGame: function(game, e) { if ( + // Import ? + (typeof game.id == "string" && game.id.charAt(0) == 'i') || // My game ? game.players.some(p => p.sid == this.st.user.sid || p.id == this.st.user.id