summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-06-29 09:36:27 -0300
committerJoram Wilander <jwawilander@gmail.com>2016-06-29 08:36:27 -0400
commitfccacbbf964dd95a025b02555b29f39667a03f0a (patch)
tree26e87c741d044580048f58bf863469adbfc28568
parentb418d78517b4fbdb6ad405ad8b3b483f2fd624d5 (diff)
downloadchat-fccacbbf964dd95a025b02555b29f39667a03f0a.tar.gz
chat-fccacbbf964dd95a025b02555b29f39667a03f0a.tar.bz2
chat-fccacbbf964dd95a025b02555b29f39667a03f0a.zip
PLT-3453 Reloading the configuration in the system console should immediately show config changes (#3446)
-rw-r--r--webapp/components/admin_console/reload_config.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/components/admin_console/reload_config.jsx b/webapp/components/admin_console/reload_config.jsx
index 633993296..d6d3fb56a 100644
--- a/webapp/components/admin_console/reload_config.jsx
+++ b/webapp/components/admin_console/reload_config.jsx
@@ -6,6 +6,8 @@ import React from 'react';
import Client from 'utils/web_client.jsx';
import * as Utils from 'utils/utils.jsx';
+import {getConfig} from 'utils/async_client.jsx';
+
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
export default class ReloadConfigButton extends React.Component {
@@ -30,6 +32,7 @@ export default class ReloadConfigButton extends React.Component {
Client.reloadConfig(
() => {
+ getConfig();
this.setState({
loading: false
});