mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3496)
This commit is contained in:
committed by
Christopher Speller
parent
60e33e09a8
commit
31d956a050
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user