summaryrefslogtreecommitdiff
path: root/frontend/app/views/page/components/tile.form.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/views/page/components/tile.form.js')
-rw-r--r--frontend/app/views/page/components/tile.form.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/app/views/page/components/tile.form.js b/frontend/app/views/page/components/tile.form.js
index a9f34a7..3e31758 100644
--- a/frontend/app/views/page/components/tile.form.js
+++ b/frontend/app/views/page/components/tile.form.js
@@ -113,6 +113,7 @@ const newText = (data) => ({
background_color: 'transparent',
width: 0,
height: 0,
+ units: 'px',
external_link_url: "",
cursor: 'hand_up',
},
@@ -126,6 +127,7 @@ const newLink = (data) => ({
...newPosition({ width: 100, height: 100, }),
external_link_url: "",
cursor: 'hand_up',
+ units: 'px',
},
type: 'link',
target_page_id: null,
@@ -662,6 +664,16 @@ class TileForm extends Component {
autoComplete="off"
/>
</div>
+ <div className='row pair'>
+ <TextInput
+ title="Units"
+ name="units"
+ data={temporaryTile.settings}
+ error={errorFields.has('units')}
+ onChange={this.handleSettingsChange.bind(this)}
+ autoComplete="off"
+ />
+ </div>
</div>
)
}