diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-02 09:21:58 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-02 09:21:58 -0500 |
commit | 07f0df6af428a56a4abedde841a0813e2802cd2b (patch) | |
tree | 7f2b7e913ac91ed6ee1bacaa0831c37b71c549d8 /web/react/components/suggestion/suggestion_list.jsx | |
parent | 06e0919bca7ee4280c6eed58838ca2be10e7b4fb (diff) | |
download | chat-07f0df6af428a56a4abedde841a0813e2802cd2b.tar.gz chat-07f0df6af428a56a4abedde841a0813e2802cd2b.tar.bz2 chat-07f0df6af428a56a4abedde841a0813e2802cd2b.zip |
Moved action creation for suggestions
Diffstat (limited to 'web/react/components/suggestion/suggestion_list.jsx')
-rw-r--r-- | web/react/components/suggestion/suggestion_list.jsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/web/react/components/suggestion/suggestion_list.jsx b/web/react/components/suggestion/suggestion_list.jsx index cd75f36c5..290e0eec6 100644 --- a/web/react/components/suggestion/suggestion_list.jsx +++ b/web/react/components/suggestion/suggestion_list.jsx @@ -1,8 +1,8 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -import AppDispatcher from '../../dispatcher/app_dispatcher.jsx'; import Constants from '../../utils/constants.jsx'; +import * as EventHelpers from '../../dispatcher/event_helpers.jsx'; import SuggestionStore from '../../stores/suggestion_store.jsx'; export default class SuggestionList extends React.Component { @@ -37,11 +37,7 @@ export default class SuggestionList extends React.Component { } handleItemClick(term, e) { - AppDispatcher.handleViewAction({ - type: Constants.ActionTypes.SUGGESTION_COMPLETE_WORD, - id: this.props.suggestionId, - term - }); + EventHelpers.emitCompleteWordSuggestion(this.props.suggestionId, term); e.preventDefault(); } |