X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=355010a3abf7cd6fc7b0a08a65d6c583de84bb72;hb=38c1dda1b3e992ef850d83e985b699e3338fe67c;hp=1031e49c75b2cc07c806f52d5ba9e319a3df6172;hpb=efdfb4c70f4a4391b8571726d924cdf58baba41c;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 1031e49c..355010a3 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -370,6 +370,11 @@ export default { return this.people[sid].pages.some(p => p.indexOf("/game/") >= 0); }, getActionLabel: function(sid) { + + +console.log(this.people[sid]); + + return this.people[sid].pages.some(p => p == "/") ? "Challenge" : "Observe"; @@ -600,7 +605,8 @@ export default { // NOTE: it may be live or correspondance const game = data.data; // Ignore games where I play (corr games) - if (game.players.every(p => p.id != this.st.user.id)) + if (game.players.every(p => + p.sid != this.st.user.sid || p.id != this.st.user.id)) { let locGame = this.games.find(g => g.id == game.id); if (!locGame) {