mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Minor fix to refresh profiles in user list of system console (#2915)
This commit is contained in:
committed by
Corey Hulen
parent
761f59645d
commit
b4d28fe205
@@ -78,20 +78,13 @@ export default class UserList extends React.Component {
|
||||
});
|
||||
|
||||
this.setState({
|
||||
teamId: this.state.teamId,
|
||||
users: memberList,
|
||||
serverError: this.state.serverError,
|
||||
showPasswordModal: this.state.showPasswordModal,
|
||||
user: this.state.user
|
||||
users: memberList
|
||||
});
|
||||
},
|
||||
(err) => {
|
||||
this.setState({
|
||||
teamId: this.state.teamId,
|
||||
users: null,
|
||||
serverError: err.message,
|
||||
showPasswordModal: this.state.showPasswordModal,
|
||||
user: this.state.user
|
||||
serverError: err.message
|
||||
});
|
||||
}
|
||||
);
|
||||
@@ -99,9 +92,6 @@ export default class UserList extends React.Component {
|
||||
|
||||
doPasswordReset(user) {
|
||||
this.setState({
|
||||
teamId: this.state.teamId,
|
||||
users: this.state.users,
|
||||
serverError: this.state.serverError,
|
||||
showPasswordModal: true,
|
||||
user
|
||||
});
|
||||
@@ -109,19 +99,14 @@ export default class UserList extends React.Component {
|
||||
|
||||
doPasswordResetDismiss() {
|
||||
this.setState({
|
||||
teamId: this.state.teamId,
|
||||
users: this.state.users,
|
||||
serverError: this.state.serverError,
|
||||
showPasswordModal: false,
|
||||
user: null
|
||||
});
|
||||
}
|
||||
|
||||
doPasswordResetSubmit() {
|
||||
this.getCurrentTeamProfiles();
|
||||
this.setState({
|
||||
teamId: this.state.teamId,
|
||||
users: this.state.users,
|
||||
serverError: this.state.serverError,
|
||||
showPasswordModal: false,
|
||||
user: null
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user