diff --git a/public/js/components/feature/FeatureForm.jsx b/public/js/components/feature/FeatureForm.jsx index 023c88a29e..b1af41b323 100644 --- a/public/js/components/feature/FeatureForm.jsx +++ b/public/js/components/feature/FeatureForm.jsx @@ -1,7 +1,28 @@ var React = require('react'); +var strategyStore = require('../../stores/StrategyStore'); var FeatureForm = React.createClass({ + getInitialState: function() { + return {strategyOptions: []}; + }, + + componentDidMount: function() { + strategyStore.getStrategies().then(this.handleStrategyResponse); + }, + + handleStrategyResponse: function(response) { + var strategyNames = response.strategies.map(function(strategy) { + return strategy.name; + }); + + this.setState({strategyOptions: strategyNames}); + }, + render: function() { + var strategyNodes = this.state.strategyOptions.map(function(name) { + return ; + }); + return (