Merge pull request #630 from influxdata/edit-telegraf

Fix uneditable telegraf text input
pull/10616/head
Will Piers 2016-11-30 12:02:26 -08:00 committed by GitHub
commit 3ef3644d6a
1 changed files with 3 additions and 3 deletions

View File

@ -57,11 +57,11 @@ export const CreateSource = React.createClass({
<div>
<div className="form-group col-xs-6 col-sm-4 col-sm-offset-2">
<label htmlFor="connect-string">Connection String</label>
<input ref={(r) => this.sourceURL = r} className="form-control" id="connect-string" placeholder="http://localhost:8086"></input>
<input ref={(r) => this.sourceURL = r} className="form-control" id="connect-string" defaultValue="http://localhost:8086"></input>
</div>
<div className="form-group col-xs-6 col-sm-4">
<label htmlFor="name">Name</label>
<input ref={(r) => this.sourceName = r} className="form-control" id="name" placeholder="Influx 1"></input>
<input ref={(r) => this.sourceName = r} className="form-control" id="name" defaultValue="Influx 1"></input>
</div>
<div className="form-group col-xs-6 col-sm-4 col-sm-offset-2">
<label htmlFor="username">Username</label>
@ -74,7 +74,7 @@ export const CreateSource = React.createClass({
</div>
<div className="form-group col-xs-8 col-xs-offset-2">
<label htmlFor="telegraf">Telegraf database</label>
<input ref={(r) => this.sourceTelegraf = r} className="form-control" id="telegraf" type="text" value="telegraf"></input>
<input ref={(r) => this.sourceTelegraf = r} className="form-control" id="telegraf" type="text" defaultValue="telegraf"></input>
</div>
<div className="form-group col-xs-12 text-center">
<button className="btn btn-success" type="submit">Create New Server</button>