diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-07-31 18:54:34 +0200 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-07-31 12:54:34 -0400 |
commit | 251f000c68ed384923d3b2bc6b3caea9aef2a089 (patch) | |
tree | c8740dcf79f1f837529f2a436f1ed377c771ae43 /webapp/components/navbar.jsx | |
parent | 489602efe5e099f57bb2b58b7c67f8fc104ff5db (diff) | |
download | chat-251f000c68ed384923d3b2bc6b3caea9aef2a089.tar.gz chat-251f000c68ed384923d3b2bc6b3caea9aef2a089.tar.bz2 chat-251f000c68ed384923d3b2bc6b3caea9aef2a089.zip |
[PLT-6710] /rename [text] slash command: Rename the channel (#6570)
* /rename [text] slash command: Rename the channel
* update strings per review
Diffstat (limited to 'webapp/components/navbar.jsx')
-rw-r--r-- | webapp/components/navbar.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx index fc2ade7ab..81959f352 100644 --- a/webapp/components/navbar.jsx +++ b/webapp/components/navbar.jsx @@ -115,6 +115,7 @@ export default class Navbar extends React.Component { ModalStore.addModalListener(ActionTypes.TOGGLE_QUICK_SWITCH_MODAL, this.toggleQuickSwitchModal); ModalStore.addModalListener(ActionTypes.TOGGLE_CHANNEL_HEADER_UPDATE_MODAL, this.showEditChannelHeaderModal); ModalStore.addModalListener(ActionTypes.TOGGLE_CHANNEL_PURPOSE_UPDATE_MODAL, this.showChannelPurposeModal); + ModalStore.addModalListener(ActionTypes.TOGGLE_CHANNEL_NAME_UPDATE_MODAL, this.showRenameChannelModal); $('.inner-wrap').click(this.hideSidebars); document.addEventListener('keydown', this.handleQuickSwitchKeyPress); } @@ -128,6 +129,7 @@ export default class Navbar extends React.Component { ModalStore.removeModalListener(ActionTypes.TOGGLE_QUICK_SWITCH_MODAL, this.toggleQuickSwitchModal); ModalStore.addModalListener(ActionTypes.TOGGLE_CHANNEL_HEADER_UPDATE_MODAL, this.hideEditChannelHeaderModal); ModalStore.addModalListener(ActionTypes.TOGGLE_CHANNEL_PURPOSE_UPDATE_MODAL, this.hideChannelPurposeModal); + ModalStore.addModalListener(ActionTypes.TOGGLE_CHANNEL_NAME_UPDATE_MODAL, this.hideRenameChannelModal); document.removeEventListener('keydown', this.handleQuickSwitchKeyPress); } @@ -218,9 +220,7 @@ export default class Navbar extends React.Component { }); } - showRenameChannelModal(e) { - e.preventDefault(); - + showRenameChannelModal() { this.setState({ showRenameChannelModal: true }); |