Healing merge.

pull/10616/head
Hunter Trujillo 2017-02-09 18:21:22 -07:00
parent cc26c3b1dc
commit 5ae8e8145d
1 changed files with 8 additions and 0 deletions

View File

@ -90,11 +90,19 @@ export const RuleMessage = React.createClass({
<div className="rule-section--item bottom alert-message--endpoint">
<p>Send this Alert to:</p>
<Dropdown className="size-256 dropdown-kapacitor" selected={selectedAlert || 'Choose an output'} items={alerts} onChoose={this.handleChooseAlert} />
{this.renderInput(this.state.selectedAlert)}
</div>
</div>
</div>
);
},
renderInput(alert) {
if (!DEFAULT_ALERTS.find((a) => a === alert)) {
return null;
}
return <input className="form-control col-xs-6" type="text" ref={(r) => this.selectedAlert = r} />;
},
});
const CodeData = React.createClass({