Move remaining client functions in components to actions (#5171)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
49c677f6b4
Коммит
d72547433a
@@ -1,12 +1,13 @@
|
||||
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
import Client from 'client/web_client.jsx';
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
import {Modal} from 'react-bootstrap';
|
||||
|
||||
import {injectIntl, intlShape, FormattedMessage} from 'react-intl';
|
||||
|
||||
import {adminResetPassword} from 'actions/admin_actions.jsx';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
class ResetPasswordModal extends React.Component {
|
||||
@@ -32,7 +33,7 @@ class ResetPasswordModal extends React.Component {
|
||||
}
|
||||
this.setState({serverError: null});
|
||||
|
||||
Client.adminResetPassword(
|
||||
adminResetPassword(
|
||||
this.props.user.id,
|
||||
password,
|
||||
() => {
|
||||
|
||||
Ссылка в новой задаче
Block a user