PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3496)

This commit is contained in:
enahum
2016-07-06 08:37:28 -04:00
committed by Christopher Speller
parent 60e33e09a8
commit 31d956a050

View File

@@ -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;