diff options
author | doh5 <doo@mattermost.com> | 2017-05-17 22:19:17 +0900 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-05-17 09:19:17 -0400 |
commit | f13b2ffbe1c92fce1f031db7ecee2477d0e69621 (patch) | |
tree | d113eeef834e0bdd7107d8d7acd0e12cb706a3d7 /webapp/components/user_list.jsx | |
parent | 128eab2de4376e2b2a822d8ebd4774d5aa6a2119 (diff) | |
download | chat-f13b2ffbe1c92fce1f031db7ecee2477d0e69621.tar.gz chat-f13b2ffbe1c92fce1f031db7ecee2477d0e69621.tar.bz2 chat-f13b2ffbe1c92fce1f031db7ecee2477d0e69621.zip |
Add IDs to the system console user list, its name and email (#6419)
* Update system_users.jsx
* Update user_list.jsx
* Update user_list.jsx
* Update user_list.jsx
* Update user_list_row.jsx
* Update user_list_row.jsx
Diffstat (limited to 'webapp/components/user_list.jsx')
-rw-r--r-- | webapp/components/user_list.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/user_list.jsx b/webapp/components/user_list.jsx index 62301b852..ceb6f9780 100644 --- a/webapp/components/user_list.jsx +++ b/webapp/components/user_list.jsx @@ -7,6 +7,8 @@ import LoadingScreen from 'components/loading_screen.jsx'; import React from 'react'; import {FormattedMessage} from 'react-intl'; +import Constants from 'utils/constants.jsx'; + export default class UserList extends React.Component { constructor(props) { super(props); @@ -27,7 +29,7 @@ export default class UserList extends React.Component { if (users == null) { return <LoadingScreen/>; } else if (users.length > 0) { - content = users.map((user) => { + content = users.map((user, index) => { return ( <UserListRow key={user.id} @@ -36,6 +38,7 @@ export default class UserList extends React.Component { actions={this.props.actions} actionProps={this.props.actionProps} actionUserProps={this.props.actionUserProps[user.id]} + userCount={(index >= 0 && index < Constants.TEST_ID_COUNT) ? index : -1} /> ); }); |