mirror of https://github.com/bra1n/townsquare.git
ST always sees vote history
i.e. toggle affects only players
This commit is contained in:
parent
c39aef622e
commit
5edc476b08
|
@ -138,7 +138,7 @@
|
|||
Vote history<em>[V]</em>
|
||||
</li>
|
||||
<li @click="toggleRecordVoteHistory" v-if="!session.isSpectator">
|
||||
Record vote history
|
||||
Permit vote history
|
||||
<em>
|
||||
<font-awesome-icon
|
||||
:icon="[
|
||||
|
|
|
@ -71,7 +71,7 @@ const mutations = {
|
|||
* @param players
|
||||
*/
|
||||
addHistory(state, players) {
|
||||
if (!state.recordVoteHistory) return;
|
||||
if (!state.recordVoteHistory && state.isSpectator) return;
|
||||
if (!state.nomination || state.lockedVote <= players.length) return;
|
||||
const isBanishment = players[state.nomination[1]].role.team === "traveler";
|
||||
state.voteHistory.push({
|
||||
|
|
Loading…
Reference in New Issue