summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_info.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-23 10:52:52 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-23 12:11:11 -0500
commit388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d (patch)
tree42b0d26b00915c755fe160f775cac26b13c353e0 /web/react/components/post_info.jsx
parent6016f91358fa81c01de72011bb34c98cf2851751 (diff)
downloadchat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.tar.gz
chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.tar.bz2
chat-388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d.zip
Moved show static methods out of modals and into EventHelpers
Diffstat (limited to 'web/react/components/post_info.jsx')
-rw-r--r--web/react/components/post_info.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/post_info.jsx b/web/react/components/post_info.jsx
index bc6e8470d..cedb2b59b 100644
--- a/web/react/components/post_info.jsx
+++ b/web/react/components/post_info.jsx
@@ -1,11 +1,11 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-import DeletePostModal from './delete_post_modal.jsx';
import UserStore from '../stores/user_store.jsx';
import TeamStore from '../stores/team_store.jsx';
import * as Utils from '../utils/utils.jsx';
import TimeSince from './time_since.jsx';
+import * as EventHelpers from '../dispatcher/event_helpers.jsx';
import Constants from '../utils/constants.jsx';
@@ -74,7 +74,7 @@ export default class PostInfo extends React.Component {
<a
href='#'
role='menuitem'
- onClick={() => DeletePostModal.show(post, dataComments)}
+ onClick={() => EventHelpers.showDeletePostModal(post, dataComments)}
>
{'Delete'}
</a>