diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-18 09:07:57 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-18 09:07:57 -0500 |
commit | 9660adb00775aba822d2d684d215c55679a456c6 (patch) | |
tree | 0db5c19e03609cbce3f70e20c7fe45a10f640d18 /web/react/components/rhs_comment.jsx | |
parent | 7b01528d17c61a762ded17a23ccd9a2a728910a0 (diff) | |
parent | a4267471a57c95dd99e17ee5e9fcc95892970764 (diff) | |
download | chat-9660adb00775aba822d2d684d215c55679a456c6.tar.gz chat-9660adb00775aba822d2d684d215c55679a456c6.tar.bz2 chat-9660adb00775aba822d2d684d215c55679a456c6.zip |
Merge pull request #1430 from hmhealey/plt737a
PLT-737 Converted DeletePostModal to React-Bootstrap
Diffstat (limited to 'web/react/components/rhs_comment.jsx')
-rw-r--r-- | web/react/components/rhs_comment.jsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/web/react/components/rhs_comment.jsx b/web/react/components/rhs_comment.jsx index 58cc1cac7..c16f9ff0e 100644 --- a/web/react/components/rhs_comment.jsx +++ b/web/react/components/rhs_comment.jsx @@ -8,6 +8,7 @@ var UserStore = require('../stores/user_store.jsx'); var AppDispatcher = require('../dispatcher/app_dispatcher.jsx'); var Utils = require('../utils/utils.jsx'); var Constants = require('../utils/constants.jsx'); +var DeletePostModal = require('./delete_post_modal.jsx'); var FileAttachmentList = require('./file_attachment_list.jsx'); var Client = require('../utils/client.jsx'); var AsyncClient = require('../utils/async_client.jsx'); @@ -114,12 +115,7 @@ export default class RhsComment extends React.Component { <a href='#' role='menuitem' - data-toggle='modal' - data-target='#delete_post' - data-title='Comment' - data-postid={post.id} - data-channelid={post.channel_id} - data-comments={0} + onClick={() => DeletePostModal.show(post, 0)} > {'Delete'} </a> |