logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: b52a5e6bd60be3f9548cf59eb313b1e6c2f5920e
parent: bb194ddb3c65394c256c381834ba3bce4d2988cc
Author: unarist <m.unarist@gmail.com>
Date:   Wed,  5 Jul 2017 21:51:53 +0900

Show LoadMore button on Notifications even if all items are filtered (#4077)


Diffstat:

Mapp/javascript/mastodon/features/notifications/index.js4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/javascript/mastodon/features/notifications/index.js b/app/javascript/mastodon/features/notifications/index.js @@ -122,7 +122,7 @@ export default class Notifications extends React.PureComponent { let unread = ''; let scrollContainer = ''; - if (!isLoading && notifications.size > 0 && hasMore) { + if (!isLoading && hasMore) { loadMore = <LoadMore onClick={this.handleLoadMore} />; } @@ -132,7 +132,7 @@ export default class Notifications extends React.PureComponent { if (isLoading && this.scrollableArea) { scrollableArea = this.scrollableArea; - } else if (notifications.size > 0) { + } else if (notifications.size > 0 || hasMore) { scrollableArea = ( <div className='scrollable' onScroll={this.handleScroll} ref={this.setRef}> {unread}