0
0
Fork 0

Only show discard hand button to mediums

This commit is contained in:
Oliver-Akins 2020-12-16 18:12:43 -07:00
parent 63037a78c3
commit d5235942db

View file

@ -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>