This commit is contained in:
Thomas Nordquist
2019-01-11 19:07:56 +01:00
parent b52b2d7696
commit a8e082f084
3 changed files with 13 additions and 8 deletions

View File

@@ -84,14 +84,14 @@ class Settings extends React.Component<Props, {}> {
}
private renderAutoExpand() {
const { classes, actions, autoExpandLimit } = this.props
const { classes, autoExpandLimit } = this.props
return (
<div style={{ padding: '8px' }}>
<InputLabel htmlFor="auto-expand">Auto Expand</InputLabel>
<Select
value={autoExpandLimit}
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => actions.setAutoExpandLimit(e.target.value)}
onChange={this.onChangeAutoExpand}
input={<Input name="auto-expand" id="auto-expand-label-placeholder" />}
displayEmpty={true}
name="auto-expand"
@@ -107,6 +107,10 @@ class Settings extends React.Component<Props, {}> {
)
}
private onChangeAutoExpand = (e: React.ChangeEvent<HTMLSelectElement>) => {
this.props.actions.setAutoExpandLimit(e.target.value)
}
private renderNodeOrder() {
const { classes, nodeOrder } = this.props