Skip to content

Commit

Permalink
add overwrite everywhere else
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbogdanov committed May 24, 2023
1 parent b1b867c commit 28448be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/TheChessboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ onMounted(() => {
boardState.value.boardConfig.movable = {
color: props.playerColor || boardState.value.boardConfig.turnColor,
dests: possibleMoves(game),
free:
props.boardConfig?.movable?.free || defaultBoardConfig?.movable?.free,
};
}
board = Chessground(boardElement.value, boardState.value.boardConfig);
Expand Down Expand Up @@ -141,6 +143,8 @@ function changeTurn(): (orig: Key, dest: Key) => Promise<void> {
movable: {
color: props.playerColor || board.state.turnColor,
dests: possibleMoves(game),
free:
props.boardConfig?.movable?.free || defaultBoardConfig?.movable?.free,
},
});
Expand Down

0 comments on commit 28448be

Please sign in to comment.