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>
|
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="[
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue