diff --git a/src/components/modals/VoteHistoryModal.vue b/src/components/modals/VoteHistoryModal.vue index ce3b0ef..83abebf 100644 --- a/src/components/modals/VoteHistoryModal.vue +++ b/src/components/modals/VoteHistoryModal.vue @@ -8,35 +8,28 @@ @click="clearVoteHistory" icon="trash-alt" class="clear" - title="Clear history" + title="Clear vote history" v-if="session.isSpectator" /> -

Nomination history

+

Vote history

@@ -114,8 +107,7 @@ export default { !this.session.isVoteHistoryAllowed ); }, - ...mapMutations(["toggleModal"]), - ...mapMutations("session", ["clearVoteHistory"]) + ...mapMutations(["toggleModal"]) } }; @@ -133,11 +125,21 @@ export default { } } +.options { + display: flex; + justify-content: center; + align-items: center; + justify-content: center; + align-content: center; +} + .option { color: white; text-decoration: none; + margin: 0 15px 0 15px; &:hover { color: red; + cursor: pointer; } } diff --git a/src/store/socket.js b/src/store/socket.js index f48ad82..5efa7c2 100644 --- a/src/store/socket.js +++ b/src/store/socket.js @@ -175,6 +175,7 @@ class LiveSession { case "isVoteHistoryAllowed": if (!this._isSpectator) return; this._store.commit("session/setVoteHistoryAllowed", params); + this._store.commit("session/clearVoteHistory"); break; case "votingSpeed": if (!this._isSpectator) return; @@ -346,10 +347,7 @@ class LiveSession { }); if (!isLightweight) { this._store.commit("toggleNight", !!isNight); - this._store.commit( - "session/setVoteHistoryAllowed", - isVoteHistoryAllowed - ); + this._store.commit("session/setVoteHistoryAllowed", isVoteHistoryAllowed); this._store.commit("session/nomination", { nomination, votes,