Added initial selection of player who chooses a BoardEntry in BE

This commit is contained in:
EisiBaer committed 2023-07-11 17:22:05 +02:00
1 parent a4b0db9118
commit 70d9786ef2
9 files changed
+93 -6

No files matched your search

+3
View File
@@ -29,6 +29,9 @@ function boardSelected( id ){
onMounted( () => {
gameStore.addSocketListener("gameStarted", ( data ) => {
if( !gameStore.isHost ){
gameStore.isPlayerChoosing = data.payload.choosingPlayer === gameStore.playerId;
}
router.push( { name: "gameWithGameId", params: { gameId: route.params.gameId } } );
});