From 31d956a0500f8fca49c82723aac5440659df77e3 Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 6 Jul 2016 08:37:28 -0400 Subject: PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3496) --- webapp/components/admin_console/configuration_settings.jsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'webapp/components') 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; -- cgit v1.2.3-1-g7c22