diff options
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r-- | webapp/components/create_post.jsx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index b57eb2f17..4b83f3051 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -466,20 +466,8 @@ export default class CreatePost extends React.Component { showShortcuts(e) { if ((e.ctrlKey || e.metaKey) && e.keyCode === Constants.KeyCodes.FORWARD_SLASH) { e.preventDefault(); - const args = {}; - args.channel_id = this.state.channelId; - args.team_id = TeamStore.getCurrentId(); - ChannelActions.executeCommand( - '/shortcuts', - args, - null, - (err) => { - this.setState({ - serverError: err.message, - submitting: false - }); - } - ); + + GlobalActions.showShortcutsModal(); } } |