X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=0982af00647c8a3e316c549296a3c117640c7d13;hb=c74b3e5c00a85056bd6cc2c891d945c5cf47acab;hp=067a50dbae623bb35875aae742f24ae4b13bd5e5;hpb=1ef65040168ab7d55ce921abc9d63644a937d689;p=vchess.git 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) {