From 9c01f3fcf063b4cd31d781d7ac62bf4bed57deb1 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 6 Oct 2016 17:27:07 +0200 Subject: [PATCH] Fix delete option missing from statuses in detailed view --- .../javascripts/components/features/status/index.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/components/features/status/index.jsx b/app/assets/javascripts/components/features/status/index.jsx index 167864a1c2..f7ce53e99c 100644 --- a/app/assets/javascripts/components/features/status/index.jsx +++ b/app/assets/javascripts/components/features/status/index.jsx @@ -17,7 +17,8 @@ function selectStatuses(state, ids) { const mapStateToProps = (state, props) => ({ status: selectStatus(state, Number(props.params.statusId)), ancestors: selectStatuses(state, state.getIn(['timelines', 'ancestors', Number(props.params.statusId)], Immutable.OrderedSet())), - descendants: selectStatuses(state, state.getIn(['timelines', 'descendants', Number(props.params.statusId)], Immutable.OrderedSet())) + descendants: selectStatuses(state, state.getIn(['timelines', 'descendants', Number(props.params.statusId)], Immutable.OrderedSet())), + me: state.getIn(['timelines', 'me']) }); const Status = React.createClass({ @@ -55,11 +56,11 @@ const Status = React.createClass({ }, renderChildren (list) { - return list.map(s => ); + return list.map(s => ); }, render () { - const { status, ancestors, descendants } = this.props; + const { status, ancestors, descendants, me } = this.props; if (status === null) { return
Loading {this.props.params.statusId}...
; @@ -71,7 +72,7 @@ const Status = React.createClass({
{this.renderChildren(ancestors)}
- +
{this.renderChildren(descendants)}