Skip to content

Commit

Permalink
Fix #580
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed May 24, 2019
1 parent 48b4bf3 commit a76fc18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file.

## [Unreleased][unreleased]

**Changed**

* Board transformations (rotation/flip/inversion) are now temporary and faster, transforms coordinates as well, located in the 'View' main menu, and have dedicated keyboard shortcuts

**Fixed**

* Fix 'Update Result' not working in the score drawer

## [Sabaki v0.43.3][v0.43.3] (2019-05-13)

**Added**
Expand Down
7 changes: 6 additions & 1 deletion src/components/DrawerManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ class DrawerManager extends Component {
super()

this.handleScoreSubmit = ({resultString}) => {
this.props.rootTree.nodes[0].RE = [resultString]
let gameTree = this.props.gameTrees[this.props.gameIndex]
let newTree = gameTree.mutate(draft => {
draft.updateProperty(draft.root.id, 'RE', [resultString])
})

sabaki.setCurrentTreePosition(newTree, this.props.treePosition)
sabaki.closeDrawer()
setTimeout(() => sabaki.setMode('play'), 500)
}
Expand Down

0 comments on commit a76fc18

Please sign in to comment.