summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-07-06 08:37:28 -0400
committerChristopher Speller <crspeller@gmail.com>2016-07-06 08:37:28 -0400
commit31d956a0500f8fca49c82723aac5440659df77e3 (patch)
tree2ef1392dc771c37da309b3477b2530093bcc927c /webapp
parent60e33e09a8d22611e579776264e6bedbd99b3f18 (diff)
downloadchat-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)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/admin_console/configuration_settings.jsx6
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;