fix: clearInout on Nodule empties label
also made join nodule form add params button full width
This commit is contained in:
parent
dbd220ec8d
commit
2d318f270a
@ -156,9 +156,8 @@ class CreateJoinNoduleForm extends Component {
|
|||||||
options={this.getForeignHeadersDropDownOptions()}
|
options={this.getForeignHeadersDropDownOptions()}
|
||||||
onChange={this.handleForeignKeyChange}
|
onChange={this.handleForeignKeyChange}
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
|
|
||||||
<Button animated='vertical' onClick={this.addJoinParam}>
|
<Button fluid animated='vertical' onClick={this.addJoinParam}>
|
||||||
<Button.Content hidden><Icon name='add' /></Button.Content>
|
<Button.Content hidden><Icon name='add' /></Button.Content>
|
||||||
<Button.Content visible>Add</Button.Content>
|
<Button.Content visible>Add</Button.Content>
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -33,6 +33,7 @@ class CreateNodule extends Component {
|
|||||||
|
|
||||||
clearInput = () => {
|
clearInput = () => {
|
||||||
this.setState({ noduleType: '' })
|
this.setState({ noduleType: '' })
|
||||||
|
this.noduleLabelInput.current.inputRef.current.value = ''
|
||||||
this.tableSelect.current.clearTablesSelected()
|
this.tableSelect.current.clearTablesSelected()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -123,7 +124,7 @@ class CreateNodule extends Component {
|
|||||||
{ this.renderNoduleForm() }
|
{ this.renderNoduleForm() }
|
||||||
|
|
||||||
<div className='creatTableFormSubmitButtons'>
|
<div className='creatTableFormSubmitButtons'>
|
||||||
<Button content='Cancel' secondary />
|
<Button content='Cancel' secondary onClick={this.clearInput} />
|
||||||
<Button content='Confirm' primary onClick={this.handleSubmit} />
|
<Button content='Confirm' primary onClick={this.handleSubmit} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user