)
td {{ c.vname }}
td {{ withWho(c) }}
- td {{ c.cadence }}
+ td(:class="getCadenceClass(c)") {{ c.cadence }}
td(:class="getRandomnessClass(c)")
p(v-else)
| {{ st.tr["No challenges found :( Click on 'New game'!"] }}
},
computed: {
sortedChallenges: function() {
- // Show in order: challenges I sent, challenges I received, other challenges
+ // Show in order:
+ // challenges I sent, challenges I received, other challenges
let minAdded = Number.MAX_SAFE_INTEGER;
let maxAdded = 0;
let augmentedChalls = this.challenges.map(c => {
return {
["random-" + c.randomness]: true
};
+ },
+ getCadenceClass: function(c) {
+ return {
+ "simultaneous": c.cadence.indexOf("/") >= 0
+ };
}
}
};
tr.toyou > td
background-color: #fcd785
+td.simultaneous
+ background-color: purple
+
tr > td:last-child
&.random-0
background-color: #FF5733