diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-12 12:35:47 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-12 12:35:47 -0500 |
commit | c1ab5adb209cefde121aff308b77e470368422cd (patch) | |
tree | a5f11345a5a0ea2447300eadea59e948e8003c5e /web/react/components/channel_header.jsx | |
parent | 67b92f32481dba243786821ed3eb189c0bd7261d (diff) | |
parent | be43522117e637271509cf24244f554a437c0578 (diff) | |
download | chat-c1ab5adb209cefde121aff308b77e470368422cd.tar.gz chat-c1ab5adb209cefde121aff308b77e470368422cd.tar.bz2 chat-c1ab5adb209cefde121aff308b77e470368422cd.zip |
Merge pull request #1410 from hmhealey/plt906
PLT-906 Added ChannelExtra.MemberCount field
Diffstat (limited to 'web/react/components/channel_header.jsx')
-rw-r--r-- | web/react/components/channel_header.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx index 895dc5fe4..dcc3bf87d 100644 --- a/web/react/components/channel_header.jsx +++ b/web/react/components/channel_header.jsx @@ -39,11 +39,14 @@ export default class ChannelHeader extends React.Component { this.state = state; } getStateFromStores() { + const extraInfo = ChannelStore.getCurrentExtraInfo(); + return { channel: ChannelStore.getCurrent(), memberChannel: ChannelStore.getCurrentMember(), memberTeam: UserStore.getCurrentUser(), - users: ChannelStore.getCurrentExtraInfo().members, + users: extraInfo.members, + userCount: extraInfo.member_count, searchVisible: SearchStore.getSearchResults() !== null }; } @@ -373,6 +376,7 @@ export default class ChannelHeader extends React.Component { <th> <PopoverListMembers members={this.state.users} + memberCount={this.state.userCount} channelId={channel.id} /> </th> |