fix: clearInout on Nodule empties label

also made join nodule form add params button full width
This commit is contained in:
ysandler 2020-08-15 11:55:43 -05:00 committed by Joshua Shoemaker
parent dbd220ec8d
commit 2d318f270a
2 changed files with 3 additions and 3 deletions

View File

@ -156,9 +156,8 @@ class CreateJoinNoduleForm extends Component {
options={this.getForeignHeadersDropDownOptions()}
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 visible>Add</Button.Content>
</Button>

View File

@ -33,6 +33,7 @@ class CreateNodule extends Component {
clearInput = () => {
this.setState({ noduleType: '' })
this.noduleLabelInput.current.inputRef.current.value = ''
this.tableSelect.current.clearTablesSelected()
}
@ -123,7 +124,7 @@ class CreateNodule extends Component {
{ this.renderNoduleForm() }
<div className='creatTableFormSubmitButtons'>
<Button content='Cancel' secondary />
<Button content='Cancel' secondary onClick={this.clearInput} />
<Button content='Confirm' primary onClick={this.handleSubmit} />
</div>
</div>