Selaa lähdekoodia

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

master
unarist 6 vuotta sitten
committed by Eugen Rochko
vanhempi
commit
b52a5e6bd6
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      app/javascript/mastodon/features/notifications/index.js

+ 2
- 2
app/javascript/mastodon/features/notifications/index.js Näytä tiedosto

@@ -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}


Ladataan…
Peruuta
Tallenna