Hiding additional traveller roles when selecting bluffs as travellers will not be used as bluffs anyway.

This commit is contained in:
Dave 2021-01-09 13:34:01 +00:00
parent 016d7feb39
commit 7ab4bcbc4d
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@
}}
</h3>
<ul>
<li class="button-group">
<li class="button-group" v-if="isBluffs()">
<span
class="button"
:class="{ active: tab === 'editionRoles' }"
@ -106,6 +106,9 @@ export default {
}
this.$store.commit("toggleModal", "role");
},
isBluffs() {
return this.playerIndex > 0;
},
...mapMutations(["toggleModal"])
}
};