diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-06 16:06:16 -0500 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-03-06 16:06:16 -0500 |
commit | a87cb40993c9321c1faf6adf0c0f90ed017659a9 (patch) | |
tree | 46c3a8b51144d09b00445c6e10211eedf1dc2778 /webapp/components/navbar.jsx | |
parent | 847c716ea2f16f7673e9b6df344dd8432d5afe5e (diff) | |
download | chat-a87cb40993c9321c1faf6adf0c0f90ed017659a9.tar.gz chat-a87cb40993c9321c1faf6adf0c0f90ed017659a9.tar.bz2 chat-a87cb40993c9321c1faf6adf0c0f90ed017659a9.zip |
Fix JS error in mobile view when opening add member modal from view member modal (#5661)
Diffstat (limited to 'webapp/components/navbar.jsx')
-rw-r--r-- | webapp/components/navbar.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx index dee32416b..c945a0b9c 100644 --- a/webapp/components/navbar.jsx +++ b/webapp/components/navbar.jsx @@ -339,6 +339,7 @@ export default class Navbar extends React.Component { addMembersOption = ( <li role='presentation'> <ToggleModalButton + ref='channelInviteModalButton' role='menuitem' dialogType={ChannelInviteModal} dialogProps={{channel, currentUser: this.state.currentUser}} @@ -796,6 +797,7 @@ export default class Navbar extends React.Component { <ChannelMembersModal show={true} onModalDismissed={this.hideMembersModal} + showInviteModal={() => this.refs.channelInviteModalButton.show()} channel={channel} isAdmin={isAdmin} /> |