projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt for better connection indicators
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
f12290d
..
0662fe8
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-458,9
+458,11
@@
export default {
case "connect":
if (!this.people[data.from]) {
this.people[data.from] = { focus: true };
case "connect":
if (!this.people[data.from]) {
this.people[data.from] = { focus: true };
- this.$forceUpdate(); //TODO: shouldn't be required
this.newConnect[data.from] = true; //for self multi-connects tests
this.send("askidentity", { target: data.from });
this.newConnect[data.from] = true; //for self multi-connects tests
this.send("askidentity", { target: data.from });
+ } else if (!this.people[data.from].focus) {
+ this.people[data.from].focus = true;
+ this.$forceUpdate(); //TODO: shouldn't be required
}
break;
case "disconnect":
}
break;
case "disconnect":