Minor fix to refresh profiles in user list of system console (#2915)

Этот коммит содержится в:
Joram Wilander
2016-05-09 03:17:42 -04:00
коммит произвёл Corey Hulen
родитель 761f59645d
Коммит b4d28fe205

Просмотреть файл

@@ -78,20 +78,13 @@ export default class UserList extends React.Component {
}); });
this.setState({ this.setState({
teamId: this.state.teamId, users: memberList
users: memberList,
serverError: this.state.serverError,
showPasswordModal: this.state.showPasswordModal,
user: this.state.user
}); });
}, },
(err) => { (err) => {
this.setState({ this.setState({
teamId: this.state.teamId,
users: null, users: null,
serverError: err.message, serverError: err.message
showPasswordModal: this.state.showPasswordModal,
user: this.state.user
}); });
} }
); );
@@ -99,9 +92,6 @@ export default class UserList extends React.Component {
doPasswordReset(user) { doPasswordReset(user) {
this.setState({ this.setState({
teamId: this.state.teamId,
users: this.state.users,
serverError: this.state.serverError,
showPasswordModal: true, showPasswordModal: true,
user user
}); });
@@ -109,19 +99,14 @@ export default class UserList extends React.Component {
doPasswordResetDismiss() { doPasswordResetDismiss() {
this.setState({ this.setState({
teamId: this.state.teamId,
users: this.state.users,
serverError: this.state.serverError,
showPasswordModal: false, showPasswordModal: false,
user: null user: null
}); });
} }
doPasswordResetSubmit() { doPasswordResetSubmit() {
this.getCurrentTeamProfiles();
this.setState({ this.setState({
teamId: this.state.teamId,
users: this.state.users,
serverError: this.state.serverError,
showPasswordModal: false, showPasswordModal: false,
user: null user: null
}); });