php-gaming-website
php-gaming-website copied to clipboard
Disable controls if user isn't able to perform the action
Problem description Currently the invariants are only captured on the server. Following needs to be done in the web interface.
- [x] Disable button in game list if a player joined a game or aborted a game. #232 (sneaked in)
- [ ] Disable the fields in the game view if it's not the current player's turn or the column is already filled.
- [ ] Disable resign game button in game view if the game isn't resignable or the current user is not a player within that game.
- [ ] Disable abort game button in game view if the game isn't resignable or the current user is not a player within that game.