diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-31 16:41:58 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-31 18:33:46 +0200 |
commit | 130bdb5ee8c0689a44b353be9bc0ca78b75bdf2e (patch) | |
tree | 4a707cba2bda5ce337b4a089968fc35784daa052 /app/javascript/flavours/glitch/containers/status_container.js | |
parent | 0f1db47a7e551bfc6a2f59d7f2def131bcb5b43c (diff) |
[Glitch] Show compose form on delete & redraft when in mobile layout
Port 025fbb8285cdedf495d9e4d015db611b0c622cbb to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/containers/status_container.js')
-rw-r--r-- | app/javascript/flavours/glitch/containers/status_container.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/containers/status_container.js b/app/javascript/flavours/glitch/containers/status_container.js index 48cb76f86..5ac92ea39 100644 --- a/app/javascript/flavours/glitch/containers/status_container.js +++ b/app/javascript/flavours/glitch/containers/status_container.js @@ -122,14 +122,14 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ dispatch(openModal('EMBED', { url: status.get('url') })); }, - 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)), })); } }, |