Add Hostname filter conditional rendering
This commit is contained in:
parent
300a896483
commit
adc8159def
1 changed files with 4 additions and 0 deletions
|
|
@ -957,15 +957,19 @@ class View extends React.Component {
|
|||
onChange={this.handleInputChange} />
|
||||
</div>
|
||||
</td>
|
||||
{this.state.diff_hosts === true &&
|
||||
<td className="top">
|
||||
<label className="control-label" htmlFor="hostname">Hostname</label>
|
||||
</td>
|
||||
}
|
||||
{this.state.diff_hosts === true &&
|
||||
<td>
|
||||
<div className="input-group">
|
||||
<input type="text" className="form-control" name="hostname" value={this.state.hostname}
|
||||
onChange={this.handleInputChange} />
|
||||
</div>
|
||||
</td>
|
||||
}
|
||||
<td className="top">
|
||||
<label className="control-label" htmlFor="config">Configuration</label>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue