Move remaining client functions in components to actions (#5171)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
49c677f6b4
Коммит
d72547433a
@@ -3,11 +3,12 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import Client from 'client/web_client.jsx';
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
|
||||
import {ldapTest} from 'actions/admin_actions.jsx';
|
||||
|
||||
export default class LdapTestButton extends React.Component {
|
||||
static get propTypes() {
|
||||
return {
|
||||
@@ -38,7 +39,7 @@ export default class LdapTestButton extends React.Component {
|
||||
});
|
||||
|
||||
const doRequest = () => { //eslint-disable-line func-style
|
||||
Client.ldapTest(
|
||||
ldapTest(
|
||||
() => {
|
||||
this.setState({
|
||||
buisy: false,
|
||||
|
||||
Ссылка в новой задаче
Block a user