diff --git a/src/components/modals/VoteHistoryModal.vue b/src/components/modals/VoteHistoryModal.vue index a8f08f0..8295ea6 100644 --- a/src/components/modals/VoteHistoryModal.vue +++ b/src/components/modals/VoteHistoryModal.vue @@ -15,22 +15,42 @@ + + - + + - + + @@ -89,13 +109,16 @@ thead td { } tbody { - td:nth-child(1) { + td:nth-child(2) { color: $townsfolk; } - td:nth-child(2) { + td:nth-child(3) { color: $demon; } - td:nth-child(4) { + td:nth-child(5) { + text-align: center; + } + td:nth-child(6) { text-align: center; } } diff --git a/src/store/modules/session.js b/src/store/modules/session.js index 152eba6..62dda3c 100644 --- a/src/store/modules/session.js +++ b/src/store/modules/session.js @@ -72,8 +72,8 @@ const mutations = { addHistory(state, players) { if (!state.nomination || state.lockedVote <= players.length) return; const isBanishment = players[state.nomination[1]].role.team === "traveler"; - console.log(isBanishment); state.voteHistory.push({ + timestamp: new Date(), nominator: players[state.nomination[0]].name, nominee: players[state.nomination[1]].name, type: isBanishment ? "Banishment" : "Execution",
Time Nominator Nominee TypeVotes Majority Hand up + + Voters +
+ {{ vote.timestamp.getHours().toString().padStart(2, "0") }}:{{ + vote.timestamp.getMinutes().toString().padStart(2, "0") + }} + {{ vote.nominator }} {{ vote.nominee }} {{ vote.type }}{{ vote.majority }} {{ vote.votes.length }} - + + + {{ vote.majority }} + + {{ vote.votes.join(", ") }}