about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/ui/components/report_modal.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-05-06 20:38:17 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-05-06 20:38:17 +0200
commit5c7bed6bbcc53895272879558640e48f04e2e8b3 (patch)
treea4481bdb0e1af88467f1aa19b4e285d433e2f8bf /app/javascript/mastodon/features/ui/components/report_modal.js
parente571de29bf0adcd9bb85970316e4d5669586d63d (diff)
Various improvements to the report UI (#7342)
* Also display replies in report modal

* Allow report modal to be up to 80% of viewport height

* Use narrow no-break space where needed in the French translation
Diffstat (limited to 'app/javascript/mastodon/features/ui/components/report_modal.js')
-rw-r--r--app/javascript/mastodon/features/ui/components/report_modal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/mastodon/features/ui/components/report_modal.js b/app/javascript/mastodon/features/ui/components/report_modal.js
index 8a55c553c..8616f0315 100644
--- a/app/javascript/mastodon/features/ui/components/report_modal.js
+++ b/app/javascript/mastodon/features/ui/components/report_modal.js
@@ -30,7 +30,7 @@ const makeMapStateToProps = () => {
       account: getAccount(state, accountId),
       comment: state.getIn(['reports', 'new', 'comment']),
       forward: state.getIn(['reports', 'new', 'forward']),
-      statusIds: OrderedSet(state.getIn(['timelines', `account:${accountId}`, 'items'])).union(state.getIn(['reports', 'new', 'status_ids'])),
+      statusIds: OrderedSet(state.getIn(['timelines', `account:${accountId}:with_replies`, 'items'])).union(state.getIn(['reports', 'new', 'status_ids'])),
     };
   };
 
@@ -64,12 +64,12 @@ export default class ReportModal extends ImmutablePureComponent {
   }
 
   componentDidMount () {
-    this.props.dispatch(expandAccountTimeline(this.props.account.get('id')));
+    this.props.dispatch(expandAccountTimeline(this.props.account.get('id'), { withReplies: true }));
   }
 
   componentWillReceiveProps (nextProps) {
     if (this.props.account !== nextProps.account && nextProps.account) {
-      this.props.dispatch(expandAccountTimeline(nextProps.account.get('id')));
+      this.props.dispatch(expandAccountTimeline(nextProps.account.get('id'), { withReplies: true }));
     }
   }