summaryrefslogtreecommitdiffstats
path: root/webapp/components/navbar.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/navbar.jsx')
-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}
/>