diff options
author | blackle <isabelle@blackle-mori.com> | 2017-04-10 22:28:52 -0400 |
---|---|---|
committer | blackle <isabelle@blackle-mori.com> | 2017-04-10 22:35:55 -0400 |
commit | 01e5447e3582787bf2370b9a483963953bdbb075 (patch) | |
tree | 1a4cd5c45f8055a53b40bc03cb26a607175a3c12 /app/assets/javascripts/components/features/status | |
parent | b89f007862bb06bbf892c4f37dbc31ed83138b53 (diff) |
Add boost confirm modal
Diffstat (limited to 'app/assets/javascripts/components/features/status')
-rw-r--r-- | app/assets/javascripts/components/features/status/index.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/status/index.jsx b/app/assets/javascripts/components/features/status/index.jsx index f98fe1b01..8b5019b57 100644 --- a/app/assets/javascripts/components/features/status/index.jsx +++ b/app/assets/javascripts/components/features/status/index.jsx @@ -82,11 +82,15 @@ const Status = React.createClass({ this.props.dispatch(replyCompose(status, this.context.router)); }, + handleModalReblog (status) { + this.props.dispatch(reblog(status)); + }, + handleReblogClick (status) { if (status.get('reblogged')) { this.props.dispatch(unreblog(status)); } else { - this.props.dispatch(reblog(status)); + this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog })); } }, |