)
+ return (
)
},
renderCreateButton: function() {
return (
-
+
);
}
});
diff --git a/public/js/components/strategy/StrategyForm.jsx b/public/js/components/strategy/StrategyForm.jsx
index 2a46c3f790..4c6e66679a 100644
--- a/public/js/components/strategy/StrategyForm.jsx
+++ b/public/js/components/strategy/StrategyForm.jsx
@@ -32,17 +32,17 @@ var StrategyForm = React.createClass({
}
});
- this.props.handleSave(strategy);
+ this.props.onSave(strategy);
},
- handleAddParam: function(event) {
+ onAddParam: function(event) {
event.preventDefault();
var id = this.state.parameters.length + 1;
var params = this.state.parameters.concat([{id:id, name: "param_" + id, label: "Parameter " +id}]);
this.setState({parameters: params});
},
- handleRemoveParam: function(event) {
+ onRemoveParam: function(event) {
event.preventDefault();
var id = this.state.parameters.length + 1;
var params = this.state.parameters.slice(0, -1);
@@ -118,14 +118,14 @@ var StrategyForm = React.createClass({
renderAddLink: function() {
if(this.state.parameters.length < this.props.maxParams) {
- return
+ Add required parameter;
+ return
+ Add required parameter;
}
},
renderRemoveLink: function() {
if(this.state.parameters.length > 0) {
return (
);
}