summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-09 20:18:00 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-09 20:18:00 +0200
commit107bf7b019215634741b11dbf07fc23c65a072b6 (patch)
tree9c421c2772f6df874e899f6116033d635c92a3a5
parent7e4a60f2bd13a59f77ca45263162561e82dd02d4 (diff)
typoes
-rw-r--r--frontend/views/page/components/tile.form.js5
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>
)
}