diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-22 16:30:09 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-22 16:30:09 +0100 |
commit | c96fd24f48c388116b6a1b42cc0be693aa428d0f (patch) | |
tree | b5764c8b79f159d301b00851168183458af70729 /app/assets/javascripts/components/features/ui | |
parent | c77a54fe0aadceb9b1e74097dbdb272a4eb62fd5 (diff) |
Improve status reselect, do not display "load more" when no next link available
Diffstat (limited to 'app/assets/javascripts/components/features/ui')
-rw-r--r-- | app/assets/javascripts/components/features/ui/containers/status_list_container.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx b/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx index bb6df1133..f249240d8 100644 --- a/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx +++ b/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx @@ -40,7 +40,8 @@ const makeMapStateToProps = () => { const mapStateToProps = (state, props) => ({ statusIds: getStatusIds(state, props), isLoading: state.getIn(['timelines', props.type, 'isLoading'], true), - isUnread: state.getIn(['timelines', props.type, 'unread']) > 0 + isUnread: state.getIn(['timelines', props.type, 'unread']) > 0, + hasMore: !!state.getIn(['timelines', props.type, 'next']) }); return mapStateToProps; |