Added initial selection of player who chooses a BoardEntry in BE
This commit is contained in:
1 parent
a4b0db9118
commit
70d9786ef2
9 files changed
+93
-6
No files matched your search
@@ -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 } } );
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user