ST always sees vote history

i.e. toggle affects only players
This commit is contained in:
nicfreeman1209 2021-05-03 14:32:58 +01:00
parent c39aef622e
commit 5edc476b08
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@
Vote history<em>[V]</em> Vote history<em>[V]</em>
</li> </li>
<li @click="toggleRecordVoteHistory" v-if="!session.isSpectator"> <li @click="toggleRecordVoteHistory" v-if="!session.isSpectator">
Record vote history Permit vote history
<em> <em>
<font-awesome-icon <font-awesome-icon
:icon="[ :icon="[

View File

@ -71,7 +71,7 @@ const mutations = {
* @param players * @param players
*/ */
addHistory(state, players) { addHistory(state, players) {
if (!state.recordVoteHistory) return; if (!state.recordVoteHistory && state.isSpectator) return;
if (!state.nomination || state.lockedVote <= players.length) return; if (!state.nomination || state.lockedVote <= players.length) return;
const isBanishment = players[state.nomination[1]].role.team === "traveler"; const isBanishment = players[state.nomination[1]].role.team === "traveler";
state.voteHistory.push({ state.voteHistory.push({