From: Benjamin Auder Date: Mon, 30 Mar 2020 19:09:55 +0000 (+0200) Subject: Fix classifyObject() in Hall X-Git-Url: https://git.auder.net/doc/html/%7B%7B%20path%28%27mixstore_user_board%27%29%20%7D%7D?a=commitdiff_plain;h=c74b3e5c00a85056bd6cc2c891d945c5cf47acab;p=vchess.git Fix classifyObject() in Hall --- diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 067a50db..0982af00 100644 --- 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) {