FIX : Allow actions on discard
This commit is contained in:
@@ -3,6 +3,8 @@ import goStore from '~/netcode';
|
||||
import type { Player } from '~/netcode/Player';
|
||||
|
||||
const current_players = computed<Array<Player>>(() => Array.from(goStore.players.values()).filter(p => p.team === goStore.game?.current_turn))
|
||||
|
||||
const discard_unwrapped = ref<boolean>(false)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -15,7 +17,8 @@ const current_players = computed<Array<Player>>(() => Array.from(goStore.players
|
||||
</PlayerListElement>
|
||||
</div>
|
||||
<div id="current_player">
|
||||
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
|
||||
<input type="checkbox" v-model="discard_unwrapped">
|
||||
<PlayerSlot v-for="p in current_players" :player="p" :discard_unwrapped="discard_unwrapped"></PlayerSlot>
|
||||
</div>
|
||||
<SelfView></SelfView>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user