mirror of https://github.com/bra1n/townsquare.git
remove direct ST control of block
This commit is contained in:
parent
00e1446e64
commit
335c2dd211
|
@ -132,11 +132,10 @@
|
||||||
<li @click="changeName">
|
<li @click="changeName">
|
||||||
<font-awesome-icon icon="user-edit" />Rename
|
<font-awesome-icon icon="user-edit" />Rename
|
||||||
</li>
|
</li>
|
||||||
<li v-if="!session.nomination" @click="removePlayer">
|
<li @click="removePlayer">
|
||||||
<font-awesome-icon icon="times-circle" />
|
<font-awesome-icon icon="times-circle" />
|
||||||
Remove
|
Remove
|
||||||
</li>
|
</li>
|
||||||
<template v-if="!session.nomination">
|
|
||||||
<li @click="movePlayer()">
|
<li @click="movePlayer()">
|
||||||
<font-awesome-icon icon="redo-alt" />
|
<font-awesome-icon icon="redo-alt" />
|
||||||
Move player
|
Move player
|
||||||
|
@ -145,10 +144,7 @@
|
||||||
<font-awesome-icon icon="exchange-alt" />
|
<font-awesome-icon icon="exchange-alt" />
|
||||||
Swap seats
|
Swap seats
|
||||||
</li>
|
</li>
|
||||||
<li @click="toggleOnBlock()">
|
<template v-if="!session.nomination">
|
||||||
<font-awesome-icon icon="skull" />
|
|
||||||
{{ player.isOnBlock ? "Take off block" : "Put on block" }}
|
|
||||||
</li>
|
|
||||||
<li @click="nominatePlayer()">
|
<li @click="nominatePlayer()">
|
||||||
<font-awesome-icon icon="hand-point-right" />
|
<font-awesome-icon icon="hand-point-right" />
|
||||||
Nomination
|
Nomination
|
||||||
|
@ -272,7 +268,7 @@ export default {
|
||||||
if (!this.player.isDead) {
|
if (!this.player.isDead) {
|
||||||
this.updatePlayer("isDead", true);
|
this.updatePlayer("isDead", true);
|
||||||
if (this.player.isOnBlock) {
|
if (this.player.isOnBlock) {
|
||||||
this.toggleOnBlock();
|
this.updatePlayer("isOnBlock", false);
|
||||||
}
|
}
|
||||||
} else if (this.player.isVoteless) {
|
} else if (this.player.isVoteless) {
|
||||||
this.updatePlayer("isVoteless", false);
|
this.updatePlayer("isVoteless", false);
|
||||||
|
@ -283,7 +279,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.updatePlayer("isDead", !this.player.isDead);
|
this.updatePlayer("isDead", !this.player.isDead);
|
||||||
if (this.player.isOnBlock) {
|
if (this.player.isOnBlock) {
|
||||||
this.toggleOnBlock();
|
this.updatePlayer("isOnBlock", false);
|
||||||
}
|
}
|
||||||
if (this.player.isVoteless) {
|
if (this.player.isVoteless) {
|
||||||
this.updatePlayer("isVoteless", false);
|
this.updatePlayer("isVoteless", false);
|
||||||
|
@ -339,10 +335,6 @@ export default {
|
||||||
this.isMenuOpen = false;
|
this.isMenuOpen = false;
|
||||||
this.$emit("trigger", ["claimSeat"]);
|
this.$emit("trigger", ["claimSeat"]);
|
||||||
},
|
},
|
||||||
toggleOnBlock() {
|
|
||||||
this.isMenuOpen = false;
|
|
||||||
this.$emit("trigger", ["toggleOnBlock"]);
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* Allow the ST to override a locked vote.
|
* Allow the ST to override a locked vote.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue