diff --git a/ui/App/components/ConfigContent.jsx b/ui/App/components/ConfigContent.jsx index 62edbea..d70c4fb 100644 --- a/ui/App/components/ConfigContent.jsx +++ b/ui/App/components/ConfigContent.jsx @@ -8,7 +8,7 @@ class ConfigContent extends React.Component { this.getConfig = this.getConfig.bind(this); this.getServerSettings = this.getServerSettings.bind(this); this.updateServerSettings = this.updateServerSettings.bind(this); - this.handleChange = this.handleChange.bind(this); + this.handleServerSettingsChange = this.handleServerSettingsChange.bind(this); this.state = { config: {}, serverSettings: {} @@ -20,7 +20,7 @@ class ConfigContent extends React.Component { this.getServerSettings(); } - handleChange(name, e) { + handleServerSettingsChange(name, e) { var change = this.state.serverSettings; change[name] = e.target.value; this.setState({serverSettings: change}); @@ -100,26 +100,30 @@ class ConfigContent extends React.Component {
-
+ {Object.keys(this.state.serverSettings).map(function(key) { var setting = this.state.serverSettings[key] - var ref_name = "setting-" + key + var setting_key = key.replace(/_/g, " ") return(
- - + +
+ +
) }, this)} -
- +
+
+ +