Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Commit

Permalink
Bold player names on their turn
Browse files Browse the repository at this point in the history
  • Loading branch information
kcgidw committed May 13, 2020
1 parent 380c06d commit 61dcc18
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/public/js/player-statuses-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<li v-for="u in users" :key="'0' + u.name">
<span v-if="u.connected" :style="{ color: color(u) }"><user-icon /></span>
<span v-else><wifi-off-icon /></span>
<span class="username" :style="{ color: color(u) }">{{ u.name }}</span>
<span :style="{ color: color(u), fontWeight: isMyTurn(u) ? 'bold' : 'normal' }">{{
u.name
}}</span>
</li>
</ul>
</template>
Expand All @@ -26,6 +28,9 @@ export default {
color(user) {
return Store.state.gameState.getUserColor(user.name);
},
isMyTurn(user) {
return Store.state.gameState.whoseTurn === user.name;
},
},
};
</script>

0 comments on commit 61dcc18

Please sign in to comment.