Move remaining client functions in components to actions (#5171)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
49c677f6b4
Коммит
d72547433a
@@ -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
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user