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() {
|
clearPlayers() {
|
||||||
if (this.session.isSpectator) return;
|
if (this.session.isSpectator) return;
|
||||||
if (confirm("Are you sure you want to remove all players?")) {
|
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");
|
this.$store.commit("players/clear");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -128,11 +128,11 @@
|
||||||
<font-awesome-icon icon="hand-point-right" />
|
<font-awesome-icon icon="hand-point-right" />
|
||||||
Nomination
|
Nomination
|
||||||
</li>
|
</li>
|
||||||
<li @click="movePlayer()">
|
<li @click="movePlayer()" :class="{ disabled: session.lockedVote }">
|
||||||
<font-awesome-icon icon="redo-alt" />
|
<font-awesome-icon icon="redo-alt" />
|
||||||
Move player
|
Move player
|
||||||
</li>
|
</li>
|
||||||
<li @click="swapPlayer()">
|
<li @click="swapPlayer()" :class="{ disabled: session.lockedVote }">
|
||||||
<font-awesome-icon icon="exchange-alt" />
|
<font-awesome-icon icon="exchange-alt" />
|
||||||
Swap seats
|
Swap seats
|
||||||
</li>
|
</li>
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
<font-awesome-icon icon="chair" />
|
<font-awesome-icon icon="chair" />
|
||||||
Empty seat
|
Empty seat
|
||||||
</li>
|
</li>
|
||||||
<li @click="removePlayer">
|
<li @click="removePlayer" :class="{ disabled: session.lockedVote }">
|
||||||
<font-awesome-icon icon="times-circle" />
|
<font-awesome-icon icon="times-circle" />
|
||||||
Remove
|
Remove
|
||||||
</li>
|
</li>
|
||||||
|
@ -759,7 +759,8 @@ li.move:not(.from) .player .overlay svg.move {
|
||||||
}
|
}
|
||||||
|
|
||||||
li.disabled {
|
li.disabled {
|
||||||
cursor: default;
|
cursor: not-allowed;
|
||||||
|
opacity: 0.5;
|
||||||
&:hover {
|
&:hover {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue