PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3496)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
60e33e09a8
Коммит
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) {
|
getConfigFromState(config) {
|
||||||
config.ServiceSettings.ListenAddress = this.state.listenAddress;
|
config.ServiceSettings.ListenAddress = this.state.listenAddress;
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user