mirror of https://github.com/bra1n/townsquare.git
parent
37b61d90ef
commit
beeb7b96f5
File diff suppressed because it is too large
Load Diff
|
@ -319,6 +319,10 @@ export default {
|
|||
clearPlayers() {
|
||||
if (this.session.isSpectator) return;
|
||||
if (confirm("Are you sure you want to remove all players?")) {
|
||||
// abort vote if in progress
|
||||
if (this.session.nomination) {
|
||||
this.$store.commit("session/nomination");
|
||||
}
|
||||
this.$store.commit("players/clear");
|
||||
}
|
||||
},
|
||||
|
|
|
@ -128,11 +128,11 @@
|
|||
<font-awesome-icon icon="hand-point-right" />
|
||||
Nomination
|
||||
</li>
|
||||
<li @click="movePlayer()">
|
||||
<li @click="movePlayer()" :class="{ disabled: session.lockedVote }">
|
||||
<font-awesome-icon icon="redo-alt" />
|
||||
Move player
|
||||
</li>
|
||||
<li @click="swapPlayer()">
|
||||
<li @click="swapPlayer()" :class="{ disabled: session.lockedVote }">
|
||||
<font-awesome-icon icon="exchange-alt" />
|
||||
Swap seats
|
||||
</li>
|
||||
|
@ -143,7 +143,7 @@
|
|||
<font-awesome-icon icon="chair" />
|
||||
Empty seat
|
||||
</li>
|
||||
<li @click="removePlayer">
|
||||
<li @click="removePlayer" :class="{ disabled: session.lockedVote }">
|
||||
<font-awesome-icon icon="times-circle" />
|
||||
Remove
|
||||
</li>
|
||||
|
@ -759,7 +759,8 @@ li.move:not(.from) .player .overlay svg.move {
|
|||
}
|
||||
|
||||
li.disabled {
|
||||
cursor: default;
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue