diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-09 20:18:00 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-09 20:18:00 +0200 |
| commit | 107bf7b019215634741b11dbf07fc23c65a072b6 (patch) | |
| tree | 9c421c2772f6df874e899f6116033d635c92a3a5 /frontend/views | |
| parent | 7e4a60f2bd13a59f77ca45263162561e82dd02d4 (diff) | |
typoes
Diffstat (limited to 'frontend/views')
| -rw-r--r-- | frontend/views/page/components/tile.form.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/views/page/components/tile.form.js b/frontend/views/page/components/tile.form.js index 8824e28..d570019 100644 --- a/frontend/views/page/components/tile.form.js +++ b/frontend/views/page/components/tile.form.js @@ -276,6 +276,7 @@ class TileForm extends Component { } else { validData.id = temporaryTile.id } + this.setState({ modified: false }) console.log('submit', validData) onSubmit(validData) // if submitting after switching elements, don't close the form @@ -361,8 +362,8 @@ class TileForm extends Component { {parseInt(x)}{', '} {parseInt(y)}{' '} {parseInt(width)}{'x'}{parseInt(height)}{' '} - {rotation === 0 || <span>{parseInt(rotation * 180 / Math.PI)}{'\u00B0 '}</span>} - {scale === 1 || <span>{'x'}{scale.toFixed(0.2)}</span>} + {rotation === 0 || <span>{parseInt(rotation)}{'\u00B0 '}</span>} + {scale === 1 || <span>{'x'}{scale.toFixed(2)}</span>} </div> ) } |
