projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some (experimental) fixes
[vchess.git]
/
client
/
src
/
components
/
GameList.vue
diff --git
a/client/src/components/GameList.vue
b/client/src/components/GameList.vue
index
bc9e883
..
a8c0dab
100644
(file)
--- a/
client/src/components/GameList.vue
+++ b/
client/src/components/GameList.vue
@@
-83,8
+83,6
@@
export default {
if (!!g.myColor) g.priority++;
if (!!g.myTurn) g.priority++;
}
if (!!g.myColor) g.priority++;
if (!!g.myTurn) g.priority++;
}
- // TODO: remove patch soon
- if (!g.options) g.options = {}
});
const deltaCreated = maxCreated - minCreated;
return remGames.sort((g1, g2) => {
});
const deltaCreated = maxCreated - minCreated;
return remGames.sort((g1, g2) => {
@@
-117,6
+115,8
@@
export default {
},
deleteGame: function(game, e) {
if (
},
deleteGame: function(game, e) {
if (
+ // Import ?
+ (typeof game.id == "string" && game.id.charAt(0) == 'i') ||
// My game ?
game.players.some(p =>
p.sid == this.st.user.sid || p.id == this.st.user.id
// My game ?
game.players.some(p =>
p.sid == this.st.user.sid || p.id == this.st.user.id