projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix notation and pieces setup for random asymmetric in Eightpieces
[vchess.git]
/
client
/
src
/
views
/
MyGames.vue
diff --git
a/client/src/views/MyGames.vue
b/client/src/views/MyGames.vue
index
7615308
..
9403528
100644
(file)
--- a/
client/src/views/MyGames.vue
+++ b/
client/src/views/MyGames.vue
@@
-53,7
+53,7
@@
export default {
corr: Number.MAX_SAFE_INTEGER
},
// hasMore == TRUE: a priori there could be more games to load
corr: Number.MAX_SAFE_INTEGER
},
// hasMore == TRUE: a priori there could be more games to load
- hasMore: { live: true, corr:
true
},
+ hasMore: { live: true, corr:
store.state.user.id > 0
},
conn: null,
connexionString: ""
};
conn: null,
connexionString: ""
};
@@
-68,12
+68,9
@@
export default {
// Initialize connection
this.connexionString =
params.socketUrl +
// Initialize connection
this.connexionString =
params.socketUrl +
- "/?sid=" +
- this.st.user.sid +
- "&id=" +
- this.st.user.id +
- "&tmpId=" +
- getRandString() +
+ "/?sid=" + this.st.user.sid +
+ "&id=" + this.st.user.id +
+ "&tmpId=" + getRandString() +
"&page=" +
encodeURIComponent(this.$route.path);
this.conn = new WebSocket(this.connexionString);
"&page=" +
encodeURIComponent(this.$route.path);
this.conn = new WebSocket(this.connexionString);
@@
-129,12
+126,7
@@
export default {
}
}
);
}
}
);
- } else {
- this.loadMore(
- "live",
- () => this.loadMore("corr", adjustAndSetDisplay)
- );
- }
+ } else this.loadMore("live", adjustAndSetDisplay);
});
},
beforeDestroy: function() {
});
},
beforeDestroy: function() {
@@
-297,7
+289,7
@@
export default {
}
},
loadMore: function(type, cb) {
}
},
loadMore: function(type, cb) {
- if (type == "corr") {
+ if (type == "corr"
&& this.st.user.id > 0
) {
ajax(
"/completedgames",
"GET",
ajax(
"/completedgames",
"GET",