summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-12-26 09:40:32 -0500
committerChristopher Speller <crspeller@gmail.com>2016-12-26 09:40:32 -0500
commit282f1601e373b0a11e0f6a1fae01abba98cf8a48 (patch)
tree81de86c01e7e15b8317c00484380c7cc708a2c1a /webapp/components
parent6f4e6386fb0dc4f407e70e3d904bee1b09d54728 (diff)
downloadchat-282f1601e373b0a11e0f6a1fae01abba98cf8a48.tar.gz
chat-282f1601e373b0a11e0f6a1fae01abba98cf8a48.tar.bz2
chat-282f1601e373b0a11e0f6a1fae01abba98cf8a48.zip
Fix switching between team user lists in system console (#4898)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/admin_console/team_users.jsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/webapp/components/admin_console/team_users.jsx b/webapp/components/admin_console/team_users.jsx
index 1cbb0e85f..4517e241b 100644
--- a/webapp/components/admin_console/team_users.jsx
+++ b/webapp/components/admin_console/team_users.jsx
@@ -73,14 +73,20 @@ export default class UserList extends React.Component {
componentWillReceiveProps(nextProps) {
if (nextProps.params.team !== this.props.params.team) {
const stats = TeamStore.getStats(nextProps.params.team);
+
this.setState({
team: AdminStore.getTeam(nextProps.params.team),
users: [],
teamMembers: TeamStore.getMembersInTeam(nextProps.params.team),
- total: stats.total_member_count
+ total: stats.total_member_count,
+ serverError: null,
+ showPasswordModal: false,
+ loading: true,
+ user: null
});
- this.getTeamProfiles(nextProps.params.team);
+ loadProfilesAndTeamMembers(0, Constants.PROFILE_CHUNK_SIZE, nextProps.params.team, this.loadComplete);
+ getTeamStats(nextProps.params.team);
}
}