diff --git a/src/components/modals/VoteHistoryModal.vue b/src/components/modals/VoteHistoryModal.vue index ae2d7e1..8295ea6 100644 --- a/src/components/modals/VoteHistoryModal.vue +++ b/src/components/modals/VoteHistoryModal.vue @@ -15,31 +15,43 @@ + - + + - + @@ -97,13 +109,13 @@ 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) { 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 Type Votes Hand up Majority + + Voters +
+ {{ vote.timestamp.getHours().toString().padStart(2, "0") }}:{{ + vote.timestamp.getMinutes().toString().padStart(2, "0") + }} + {{ vote.nominator }} {{ vote.nominee }} {{ vote.type }}{{ vote.votes.length }} - - {{ vote.votes.join(", ") }} + {{ vote.votes.length }} + - - + {{ vote.majority }} + + + {{ vote.votes.join(", ") }}