Re-added ChannelMembersModal on mobile

Этот коммит содержится в:
Harrison Healey
2016-03-21 15:36:26 -04:00
родитель 0db6994e08
Коммит 4bac6fc7ec

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

@@ -8,6 +8,7 @@ import MessageWrapper from './message_wrapper.jsx';
import NotifyCounts from './notify_counts.jsx'; import NotifyCounts from './notify_counts.jsx';
import ChannelInfoModal from './channel_info_modal.jsx'; import ChannelInfoModal from './channel_info_modal.jsx';
import ChannelInviteModal from './channel_invite_modal.jsx'; import ChannelInviteModal from './channel_invite_modal.jsx';
import ChannelMembersModal from './channel_members_modal.jsx';
import ChannelNotificationsModal from './channel_notifications_modal.jsx'; import ChannelNotificationsModal from './channel_notifications_modal.jsx';
import DeleteChannelModal from './delete_channel_modal.jsx'; import DeleteChannelModal from './delete_channel_modal.jsx';
import RenameChannelModal from './rename_channel_modal.jsx'; import RenameChannelModal from './rename_channel_modal.jsx';
@@ -433,6 +434,7 @@ export default class Navbar extends React.Component {
var editChannelHeaderModal = null; var editChannelHeaderModal = null;
var editChannelPurposeModal = null; var editChannelPurposeModal = null;
let renameChannelModal = null; let renameChannelModal = null;
let channelMembersModal = null;
if (channel) { if (channel) {
popoverContent = ( popoverContent = (
@@ -523,6 +525,14 @@ export default class Navbar extends React.Component {
channel={channel} channel={channel}
/> />
); );
channelMembersModal = (
<ChannelMembersModal
show={this.state.showMembersModal}
onModalDismissed={() => this.setState({showMembersModal: false})}
channel={channel}
/>
);
} }
var collapseButtons = this.createCollapseButtons(currentId); var collapseButtons = this.createCollapseButtons(currentId);
@@ -556,6 +566,7 @@ export default class Navbar extends React.Component {
{editChannelHeaderModal} {editChannelHeaderModal}
{editChannelPurposeModal} {editChannelPurposeModal}
{renameChannelModal} {renameChannelModal}
{channelMembersModal}
</div> </div>
); );
} }