about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/status
diff options
context:
space:
mode:
authorblackle <isabelle@blackle-mori.com>2017-04-10 22:28:52 -0400
committerblackle <isabelle@blackle-mori.com>2017-04-10 22:35:55 -0400
commit01e5447e3582787bf2370b9a483963953bdbb075 (patch)
tree1a4cd5c45f8055a53b40bc03cb26a607175a3c12 /app/assets/javascripts/components/features/status
parentb89f007862bb06bbf892c4f37dbc31ed83138b53 (diff)
Add boost confirm modal
Diffstat (limited to 'app/assets/javascripts/components/features/status')
-rw-r--r--app/assets/javascripts/components/features/status/index.jsx6
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 }));
     }
   },