Skip to content
Extraits de code Groupes Projets
Valider b52a5e6b rédigé par unarist's avatar unarist Validation de Eugen Rochko
Parcourir les fichiers

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

parent bb194ddb
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -122,7 +122,7 @@ export default class Notifications extends React.PureComponent { ...@@ -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 { ...@@ -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}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter