Switch to compose route when replying and compose is not mounted
This commit is contained in:
parent
93577f74e7
commit
d32e0364f9
6 changed files with 56 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue