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" />
|
<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");
|
||||||
|
|
Loading…
Reference in New Issue