MM-11589: Adds 'View Members' button to archived channels. (#2200)
* MM-11589: Adds 'View Members' button to archived channels. * MM-11589: Adds menu item separator line. * MM-11589: Keeps ability to manage users of an archived channel.
This commit is contained in:
parent
0f35add65b
commit
dda2e002e0
1 changed files with 12 additions and 1 deletions
|
|
@ -351,7 +351,18 @@ export default class ChannelInfo extends PureComponent {
|
|||
} = this.props;
|
||||
|
||||
if (channelIsArchived) {
|
||||
return null;
|
||||
return (this.renderViewOrManageMembersRow() &&
|
||||
<View>
|
||||
<ChannelInfoRow
|
||||
action={this.goToChannelMembers}
|
||||
defaultMessage={canManageUsers ? 'Manage Members' : 'View Members'}
|
||||
detail={currentChannelMemberCount}
|
||||
icon='users'
|
||||
textId={canManageUsers ? t('channel_header.manageMembers') : t('channel_header.viewMembers')}
|
||||
theme={theme}
|
||||
/>
|
||||
<View style={style.separator}/>
|
||||
</View>);
|
||||
}
|
||||
|
||||
return (<View>
|
||||
|
|
|
|||
Loading…
Reference in a new issue