projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes and enhancements as suggested on Discord
[vchess.git]
/
client
/
src
/
components
/
GameList.vue
diff --git
a/client/src/components/GameList.vue
b/client/src/components/GameList.vue
index
5396d13
..
354cfa0
100644
(file)
--- a/
client/src/components/GameList.vue
+++ b/
client/src/components/GameList.vue
@@
-61,6
+61,12
@@
export default {
remGames.forEach(g => {
if (g.created < minCreated) minCreated = g.created;
if (g.created > maxCreated) maxCreated = g.created;
remGames.forEach(g => {
if (g.created < minCreated) minCreated = g.created;
if (g.created > maxCreated) maxCreated = g.created;
+ g.priority = 0;
+ if (g.score == "*") {
+ g.priority++;
+ if (!!g.myColor) g.priority++;
+ if (!!g.myTurn) g.priority++;
+ }
});
const deltaCreated = maxCreated - minCreated;
return remGames.sort((g1, g2) => {
});
const deltaCreated = maxCreated - minCreated;
return remGames.sort((g1, g2) => {