Only show discard hand button to mediums
This commit is contained in:
parent
63037a78c3
commit
d5235942db
1 changed files with 8 additions and 2 deletions
|
|
@ -3,7 +3,9 @@
|
|||
<game-board />
|
||||
<player-hand />
|
||||
<team-reminder />
|
||||
<discard-hand />
|
||||
<discard-hand
|
||||
v-if="isGuesser"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -21,7 +23,11 @@ export default {
|
|||
"player-hand": PlayerHand,
|
||||
"game-board": GameBoard,
|
||||
},
|
||||
computed: {},
|
||||
computed: {
|
||||
isGuesser() {
|
||||
return this.$store.state.role === this.$store.state.guesser_name;
|
||||
},
|
||||
},
|
||||
methods: {},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue