diff options
Diffstat (limited to 'webapp/components/admin_console/connection_settings.jsx')
-rw-r--r-- | webapp/components/admin_console/connection_settings.jsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/webapp/components/admin_console/connection_settings.jsx b/webapp/components/admin_console/connection_settings.jsx index 81fbb9343..8e030b207 100644 --- a/webapp/components/admin_console/connection_settings.jsx +++ b/webapp/components/admin_console/connection_settings.jsx @@ -18,11 +18,6 @@ export default class ConnectionSettings extends AdminSettings { this.getConfigFromState = this.getConfigFromState.bind(this); this.renderSettings = this.renderSettings.bind(this); - - this.state = Object.assign(this.state, { - allowCorsFrom: props.config.ServiceSettings.AllowCorsFrom, - enableInsecureOutgoingConnections: props.config.ServiceSettings.EnableInsecureOutgoingConnections - }); } getConfigFromState(config) { @@ -32,6 +27,13 @@ export default class ConnectionSettings extends AdminSettings { return config; } + getStateFromConfig(config) { + return { + allowCorsFrom: config.ServiceSettings.AllowCorsFrom, + enableInsecureOutgoingConnections: config.ServiceSettings.EnableInsecureOutgoingConnections + }; + } + renderTitle() { return ( <h3> |