summaryrefslogtreecommitdiffstats
path: root/web/react/dispatcher
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-11-23 10:22:55 -0800
committerCorey Hulen <corey@hulen.com>2015-11-23 10:22:55 -0800
commitd42a567bab3cd306caf0a42bed804c26222a46da (patch)
tree3099b4d08323315985c547367349fc337971cbbe /web/react/dispatcher
parentc03a9859838e3492b50e71383587b98231408b7b (diff)
parent388dc6c89c62133c3c5fd1c3bb5ec0327cf5be6d (diff)
downloadchat-d42a567bab3cd306caf0a42bed804c26222a46da.tar.gz
chat-d42a567bab3cd306caf0a42bed804c26222a46da.tar.bz2
chat-d42a567bab3cd306caf0a42bed804c26222a46da.zip
Merge pull request #1485 from hmhealey/plt1151
PLT-1151 Refactor more modals to React-Bootstrap
Diffstat (limited to 'web/react/dispatcher')
-rw-r--r--web/react/dispatcher/event_helpers.jsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/web/react/dispatcher/event_helpers.jsx b/web/react/dispatcher/event_helpers.jsx
index 85329b38f..d7f255aaa 100644
--- a/web/react/dispatcher/event_helpers.jsx
+++ b/web/react/dispatcher/event_helpers.jsx
@@ -81,3 +81,26 @@ export function emitPostDeletedEvent(post) {
post
});
}
+
+export function showDeletePostModal(post, commentCount = 0) {
+ AppDispatcher.handleViewAction({
+ type: ActionTypes.TOGGLE_DELETE_POST_MODAL,
+ value: true,
+ post,
+ commentCount
+ });
+}
+
+export function showGetTeamInviteLinkModal() {
+ AppDispatcher.handleViewAction({
+ type: Constants.ActionTypes.TOGGLE_GET_TEAM_INVITE_LINK_MODAL,
+ value: true
+ });
+}
+
+export function showInviteMemberModal() {
+ AppDispatcher.handleViewAction({
+ type: ActionTypes.TOGGLE_INVITE_MEMBER_MODAL,
+ value: true
+ });
+}