summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-03-06 16:06:16 -0500
committerCorey Hulen <corey@hulen.com>2017-03-06 16:06:16 -0500
commita87cb40993c9321c1faf6adf0c0f90ed017659a9 (patch)
tree46c3a8b51144d09b00445c6e10211eedf1dc2778
parent847c716ea2f16f7673e9b6df344dd8432d5afe5e (diff)
downloadchat-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)
-rw-r--r--webapp/components/navbar.jsx2
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}
/>