mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Show LoadMore button on Notifications even if all items are filtered (#4077)
This commit is contained in:
parent
bb194ddb3c
commit
b52a5e6bd6
@ -122,7 +122,7 @@ export default class Notifications extends React.PureComponent {
|
|||||||
let unread = '';
|
let unread = '';
|
||||||
let scrollContainer = '';
|
let scrollContainer = '';
|
||||||
|
|
||||||
if (!isLoading && notifications.size > 0 && hasMore) {
|
if (!isLoading && hasMore) {
|
||||||
loadMore = <LoadMore onClick={this.handleLoadMore} />;
|
loadMore = <LoadMore onClick={this.handleLoadMore} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ export default class Notifications extends React.PureComponent {
|
|||||||
|
|
||||||
if (isLoading && this.scrollableArea) {
|
if (isLoading && this.scrollableArea) {
|
||||||
scrollableArea = this.scrollableArea;
|
scrollableArea = this.scrollableArea;
|
||||||
} else if (notifications.size > 0) {
|
} else if (notifications.size > 0 || hasMore) {
|
||||||
scrollableArea = (
|
scrollableArea = (
|
||||||
<div className='scrollable' onScroll={this.handleScroll} ref={this.setRef}>
|
<div className='scrollable' onScroll={this.handleScroll} ref={this.setRef}>
|
||||||
{unread}
|
{unread}
|
||||||
|
Loading…
Reference in New Issue
Block a user