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 />
|
<game-board />
|
||||||
<player-hand />
|
<player-hand />
|
||||||
<team-reminder />
|
<team-reminder />
|
||||||
<discard-hand />
|
<discard-hand
|
||||||
|
v-if="isGuesser"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -21,7 +23,11 @@ export default {
|
||||||
"player-hand": PlayerHand,
|
"player-hand": PlayerHand,
|
||||||
"game-board": GameBoard,
|
"game-board": GameBoard,
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {
|
||||||
|
isGuesser() {
|
||||||
|
return this.$store.state.role === this.$store.state.guesser_name;
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue