projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix passing games
[vchess.git]
/
client
/
src
/
views
/
Hall.vue
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
db8f528
..
39d7c16
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-405,7
+405,6
@@
export default {
newGame.type = this.classifyObject(data.game);
newGame.vname = this.getVname(data.game.vid);
newGame.rid = data.from;
newGame.type = this.classifyObject(data.game);
newGame.vname = this.getVname(data.game.vid);
newGame.rid = data.from;
- newGame.score = "*";
this.games.push(newGame);
}
break;
this.games.push(newGame);
}
break;
@@
-455,7
+454,7
@@
export default {
this.st.conn.send(JSON.stringify({code:"askgame", target:data.from}));
break;
case "disconnect":
this.st.conn.send(JSON.stringify({code:"askgame", target:data.from}));
break;
case "disconnect":
- case "
p
disconnect":
+ case "
g
disconnect":
this.$delete(this.people, data.from);
if (data.code == "disconnect")
{
this.$delete(this.people, data.from);
if (data.code == "disconnect")
{
@@
-483,12
+482,12
@@
export default {
challOrWatch: function(sid, e) {
switch (e.target.innerHTML)
{
challOrWatch: function(sid, e) {
switch (e.target.innerHTML)
{
- case "
Challeng
e":
+ case "
Availabl
e":
this.tryChallenge(sid);
break;
case "Playing":
this.showGame(this.games.find(
this.tryChallenge(sid);
break;
case "Playing":
this.showGame(this.games.find(
- g => g.
type=="live" && g.players.some(pl => pl.sid == s
id)));
+ g => g.
players.some(pl => pl.sid == sid || pl.uid == this.people[sid].
id)));
break;
};
},
break;
};
},