wohali commented on a change in pull request #933: Update for changes to _cluster_setup endpoint URL: https://github.com/apache/couchdb-fauxton/pull/933#discussion_r129081286
########## File path: app/addons/setup/setup.js ########## @@ -66,6 +99,32 @@ var SetupCurrentAdminPassword = React.createClass({ }); +var SetupNodeCountSetting = React.createClass({ + getInitialState: function () { + return { + nodeCountValue: this.props.nodeCountValue + }; + }, + + handleNodeCountChange: function (event) { + this.props.onAlterNodeCount(event); + this.setState({nodeCountValue: event.target.value}); + }, + + render: function () { + return ( + <div className="setup-node-count"> + <p>Number of nodes to be added to the cluster (including this one)</p> + <input + className="setup-input-nodecount" + value={this.state.nodeCountValue} + onChange={this.handleNodeCountChange} + placeholder="Value of cluster n" + type="text" /> + </div> + ); + } +}); var SetupOptionalSettings = React.createClass({ getInitialState: function () { Review comment: I didn't change this code, I can fix it but I really don't understand it ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services