diff options
author | enahum <nahumhbl@gmail.com> | 2016-07-06 08:37:28 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-07-06 08:37:28 -0400 |
commit | 31d956a0500f8fca49c82723aac5440659df77e3 (patch) | |
tree | 2ef1392dc771c37da309b3477b2530093bcc927c | |
parent | 60e33e09a8d22611e579776264e6bedbd99b3f18 (diff) | |
download | chat-31d956a0500f8fca49c82723aac5440659df77e3.tar.gz chat-31d956a0500f8fca49c82723aac5440659df77e3.tar.bz2 chat-31d956a0500f8fca49c82723aac5440659df77e3.zip |
PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3496)
-rw-r--r-- | webapp/components/admin_console/configuration_settings.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/admin_console/configuration_settings.jsx b/webapp/components/admin_console/configuration_settings.jsx index 0a2e32f77..65cec3027 100644 --- a/webapp/components/admin_console/configuration_settings.jsx +++ b/webapp/components/admin_console/configuration_settings.jsx @@ -24,6 +24,12 @@ export default class ConfigurationSettings extends AdminSettings { }); } + componentWillReceiveProps(nextProps) { + if (nextProps.config.ServiceSettings.ListenAddress !== this.props.config.ServiceSettings.ListenAddress) { + this.setState({listenAddress: nextProps.config.ServiceSettings.ListenAddress}); + } + } + getConfigFromState(config) { config.ServiceSettings.ListenAddress = this.state.listenAddress; |