feedback implemented

npm audit
This commit is contained in:
Steffen 2021-05-08 22:28:05 +02:00
parent 37b61d90ef
commit beeb7b96f5
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
3 changed files with 275 additions and 543 deletions

805
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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");
} }
}, },

View File

@ -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;
} }