summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/reload_config.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/admin_console/reload_config.jsx')
-rw-r--r--webapp/components/admin_console/reload_config.jsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/webapp/components/admin_console/reload_config.jsx b/webapp/components/admin_console/reload_config.jsx
index 0b50d5803..25e9463d3 100644
--- a/webapp/components/admin_console/reload_config.jsx
+++ b/webapp/components/admin_console/reload_config.jsx
@@ -3,13 +3,12 @@
import React from 'react';
-import Client from 'client/web_client.jsx';
import * as Utils from 'utils/utils.jsx';
-import {getConfig} from 'utils/async_client.jsx';
-
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
+import {reloadConfig} from 'actions/admin_actions.jsx';
+
export default class ReloadConfigButton extends React.Component {
constructor(props) {
super(props);
@@ -30,9 +29,8 @@ export default class ReloadConfigButton extends React.Component {
fail: null
});
- Client.reloadConfig(
+ reloadConfig(
() => {
- getConfig();
this.setState({
loading: false
});