X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=547237fb9d398276c15edd268c871894cc30b8dc;hb=bf588c57bdac8525f57c2017b6e70e9390e06700;hp=4e1e54b8b53f047ca94c641a9176d177f938ef31;hpb=09df24ebd12c0c5785671a0fe1ae15ff92249aa9;p=vchess.git diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 4e1e54b8..547237fb 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -562,9 +562,12 @@ export default { }, // o: challenge or game classifyObject: function(o) { - // Consider imports as live games (TODO) - if (!!o.id && !!o.id.toString().match(/^i/)) return "live"; - return o.cadence.indexOf("d") === -1 ? "live" : "corr"; + // No imported games here + return ( + game.cadence.indexOf("d") >= 0 + ? "corr" + : (game.cadence.indexOf("/") >= 0 ? "simul" : "live") + ); }, setDisplay: function(letter, type, e) { this[letter + "display"] = type;