about summary refs log tree commit diff
path: root/app/javascript/mastodon/containers/status_container.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-19 03:17:01 +0200
committerGitHub <noreply@github.com>2018-08-19 03:17:01 +0200
commit025fbb8285cdedf495d9e4d015db611b0c622cbb (patch)
tree3ea8aad569fbb8101cca8eea9e4aba4cff730860 /app/javascript/mastodon/containers/status_container.js
parentf13afa1ee92ceb40ce2e44f6457bd6e75b80adb5 (diff)
Show compose form on delete & redraft when in mobile layout (#8277)
Fix #8274
Diffstat (limited to 'app/javascript/mastodon/containers/status_container.js')
-rw-r--r--app/javascript/mastodon/containers/status_container.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/mastodon/containers/status_container.js b/app/javascript/mastodon/containers/status_container.js
index eb6329fdc..ed375c3e5 100644
--- a/app/javascript/mastodon/containers/status_container.js
+++ b/app/javascript/mastodon/containers/status_container.js
@@ -93,14 +93,14 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
     }));
   },
 
-  onDelete (status, withRedraft = false) {
+  onDelete (status, history, withRedraft = false) {
     if (!deleteModal) {
-      dispatch(deleteStatus(status.get('id'), withRedraft));
+      dispatch(deleteStatus(status.get('id'), history, withRedraft));
     } else {
       dispatch(openModal('CONFIRM', {
         message: intl.formatMessage(withRedraft ? messages.redraftMessage : messages.deleteMessage),
         confirm: intl.formatMessage(withRedraft ? messages.redraftConfirm : messages.deleteConfirm),
-        onConfirm: () => dispatch(deleteStatus(status.get('id'), withRedraft)),
+        onConfirm: () => dispatch(deleteStatus(status.get('id'), history, withRedraft)),
       }));
     }
   },