diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-21 10:52:11 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-21 10:52:11 +0100 |
commit | d32e0364f9aa2d61080c53489996351d4bd7b1c4 (patch) | |
tree | b30efea75acedb9a7fdf54727c2a54066f976c6d /app/assets/javascripts/components/features/status | |
parent | 93577f74e7ec2edee3a1a208513ae7290211e682 (diff) |
Switch to compose route when replying and compose is not mounted
Diffstat (limited to 'app/assets/javascripts/components/features/status')
-rw-r--r-- | app/assets/javascripts/components/features/status/index.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/status/index.jsx b/app/assets/javascripts/components/features/status/index.jsx index 553baf863..0a1528fe9 100644 --- a/app/assets/javascripts/components/features/status/index.jsx +++ b/app/assets/javascripts/components/features/status/index.jsx @@ -38,6 +38,9 @@ const makeMapStateToProps = () => { }; const Status = React.createClass({ + contextTypes: { + router: React.PropTypes.object + }, propTypes: { params: React.PropTypes.object.isRequired, @@ -64,7 +67,7 @@ const Status = React.createClass({ }, handleReplyClick (status) { - this.props.dispatch(replyCompose(status)); + this.props.dispatch(replyCompose(status, this.context.router)); }, handleReblogClick (status) { |