mirror of https://github.com/bra1n/townsquare.git
moving the isBluffs() logic to be inline in the template, as it is simple enough and has not needed repeating.
This commit is contained in:
parent
bee0eba732
commit
df12930762
|
@ -28,7 +28,7 @@
|
|||
<Token :role="role" />
|
||||
</li>
|
||||
</ul>
|
||||
<div class="button-group" v-if="isBluffs()">
|
||||
<div class="button-group" v-if="playerIndex >= 0">
|
||||
<span
|
||||
class="button"
|
||||
:class="{ townsfolk: tab === 'editionRoles' }"
|
||||
|
@ -99,9 +99,6 @@ export default {
|
|||
}
|
||||
this.$store.commit("toggleModal", "role");
|
||||
},
|
||||
isBluffs() {
|
||||
return this.playerIndex >= 0;
|
||||
},
|
||||
close() {
|
||||
this.tab = "editionRoles";
|
||||
this.toggleModal("role");
|
||||
|
|
Loading…
Reference in New Issue