Make rule page save button always "success" style

pull/10616/head
Alex P 2017-03-06 14:43:05 -08:00
parent df2d31e376
commit 03720018b8
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export const RuleHeader = React.createClass({
renderSave() {
const {validationError, onSave, timeRange, onChooseTimeRange} = this.props;
const saveButton = validationError ?
<button className="btn btn-sm btn-default disabled" data-for="save-kapacitor-tooltip" data-tip={validationError}>
<button className="btn btn-success btn-sm disabled" data-for="save-kapacitor-tooltip" data-tip={validationError}>
Save Rule
</button> :
<button className="btn btn-success btn-sm" onClick={onSave}>Save Rule</button>;