diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-02-16 11:56:09 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-07-21 20:57:42 +0200 |
commit | e58af0428775d6e8f98ce86cbb626e0abf6fa78b (patch) | |
tree | e7a848c2ffef04487360aba6a76f509b76041ac0 /app/javascript/flavours/glitch/features/mutes | |
parent | bd7b1538f17f3aa5b73a691044cf64068f23a231 (diff) |
[Glitch] Fix mutes, blocks, domain blocks and follow requests not paginating
Port ea7ad59af20af2aa6817b3b40dca34c8fba3373a to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/mutes')
-rw-r--r-- | app/javascript/flavours/glitch/features/mutes/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/mutes/index.js b/app/javascript/flavours/glitch/features/mutes/index.js index c398395e8..35c15deec 100644 --- a/app/javascript/flavours/glitch/features/mutes/index.js +++ b/app/javascript/flavours/glitch/features/mutes/index.js @@ -18,6 +18,7 @@ const messages = defineMessages({ const mapStateToProps = state => ({ accountIds: state.getIn(['user_lists', 'mutes', 'items']), + hasMore: !!state.getIn(['user_lists', 'mutes', 'next']), }); @connect(mapStateToProps) @@ -27,6 +28,7 @@ export default class Mutes extends ImmutablePureComponent { static propTypes = { params: PropTypes.object.isRequired, dispatch: PropTypes.func.isRequired, + hasMore: PropTypes.bool, accountIds: ImmutablePropTypes.list, intl: PropTypes.object.isRequired, }; @@ -45,7 +47,7 @@ export default class Mutes extends ImmutablePureComponent { } render () { - const { intl, accountIds } = this.props; + const { intl, accountIds, hasMore } = this.props; if (!accountIds) { return ( @@ -63,6 +65,7 @@ export default class Mutes extends ImmutablePureComponent { <ScrollableList scrollKey='mutes' onLoadMore={this.handleLoadMore} + hasMore={hasMore} shouldUpdateScroll={this.shouldUpdateScroll} emptyMessage={emptyMessage} > |