projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ef6504
)
Fix classifyObject() in Hall
author
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 30 Mar 2020 19:09:55 +0000
(21:09 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 30 Mar 2020 19:09:55 +0000
(21:09 +0200)
client/src/views/Hall.vue
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/Hall.vue
b/client/src/views/Hall.vue
index
067a50d
..
0982af0
100644
(file)
--- a/
client/src/views/Hall.vue
+++ b/
client/src/views/Hall.vue
@@
-516,8
+516,10
@@
export default {
filterGames: function(type) {
return this.games.filter(g => g.type == type);
},
+ // o: challenge or game
classifyObject: function(o) {
- // o: challenge or game
+ // Consider imports as live games (TODO)
+ if (!!o.id.match(/^i/)) return "live";
return o.cadence.indexOf("d") === -1 ? "live" : "corr";
},
setDisplay: function(letter, type, e) {