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} />
|
onChange={this.handleInputChange} />
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
{this.state.diff_hosts === true &&
|
||||||
<td className="top">
|
<td className="top">
|
||||||
<label className="control-label" htmlFor="hostname">Hostname</label>
|
<label className="control-label" htmlFor="hostname">Hostname</label>
|
||||||
</td>
|
</td>
|
||||||
|
}
|
||||||
|
{this.state.diff_hosts === true &&
|
||||||
<td>
|
<td>
|
||||||
<div className="input-group">
|
<div className="input-group">
|
||||||
<input type="text" className="form-control" name="hostname" value={this.state.hostname}
|
<input type="text" className="form-control" name="hostname" value={this.state.hostname}
|
||||||
onChange={this.handleInputChange} />
|
onChange={this.handleInputChange} />
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
}
|
||||||
<td className="top">
|
<td className="top">
|
||||||
<label className="control-label" htmlFor="config">Configuration</label>
|
<label className="control-label" htmlFor="config">Configuration</label>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue