X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=a8c0dab664556e8f1811560756a21d2d6b3af645;hb=902378e6276422d38b45f7d79282c2462f1124b1;hp=ed6b99fa18503aea4fc89ea749bdf72d36fe8f9c;hpb=eb2d61de8d569470fa329a484efe9bab420b2b82;p=vchess.git diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue index ed6b99fa..a8c0dab6 100644 --- a/client/src/components/GameList.vue +++ b/client/src/components/GameList.vue @@ -13,7 +13,7 @@ div @click="$emit('show-game',g)" :class="{'my-turn': !!g.myTurn}" ) - td {{ g.vname + '-' + g.options.abridged }} + td {{ g.vname + (g.options.abridged || '') }} td {{ player_s(g) }} td(v-if="showCadence") {{ g.cadence }} td( @@ -115,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