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:
Dave 2021-01-25 15:51:24 +00:00
parent bee0eba732
commit df12930762
1 changed files with 1 additions and 4 deletions

View File

@ -28,7 +28,7 @@
<Token :role="role" /> <Token :role="role" />
</li> </li>
</ul> </ul>
<div class="button-group" v-if="isBluffs()"> <div class="button-group" v-if="playerIndex >= 0">
<span <span
class="button" class="button"
:class="{ townsfolk: tab === 'editionRoles' }" :class="{ townsfolk: tab === 'editionRoles' }"
@ -99,9 +99,6 @@ export default {
} }
this.$store.commit("toggleModal", "role"); this.$store.commit("toggleModal", "role");
}, },
isBluffs() {
return this.playerIndex >= 0;
},
close() { close() {
this.tab = "editionRoles"; this.tab = "editionRoles";
this.toggleModal("role"); this.toggleModal("role");