about summary refs log tree commit diff
path: root/app/assets/javascripts/components/containers
diff options
context:
space:
mode:
authorblackle <isabelle@blackle-mori.com>2017-04-11 08:34:14 -0400
committerblackle <isabelle@blackle-mori.com>2017-04-11 08:34:14 -0400
commitf53fb6aa660834074bbbffac5b1fe5ea0cc85edf (patch)
tree61f9076b3cfee49c31b33700af92eebf492658e2 /app/assets/javascripts/components/containers
parent01e5447e3582787bf2370b9a483963953bdbb075 (diff)
Bypass boost confirm modal if alt is pressed
Diffstat (limited to 'app/assets/javascripts/components/containers')
-rw-r--r--app/assets/javascripts/components/containers/status_container.jsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/containers/status_container.jsx b/app/assets/javascripts/components/containers/status_container.jsx
index 918fb91a0..02746cc79 100644
--- a/app/assets/javascripts/components/containers/status_container.jsx
+++ b/app/assets/javascripts/components/containers/status_container.jsx
@@ -42,11 +42,15 @@ const mapDispatchToProps = (dispatch) => ({
     dispatch(reblog(status));
   },
 
-  onReblog (status) {
+  onReblog (status, e) {
     if (status.get('reblogged')) {
       dispatch(unreblog(status));
     } else {
-      dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
+      if (e.altKey) {
+        this.onModalReblog(status);
+      } else {
+        dispatch(openModal('BOOST', { status, onReblog: this.onModalReblog }));
+      }
     }
   },