projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debugging attempt
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
1031e49
..
355010a
100644
(file)
--- 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) {
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";
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)
// 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) {
{
let locGame = this.games.find(g => g.id == game.id);
if (!locGame) {