fix(client/user-notifications): load last page
hasMoreItems has to be called before bumping the current page in order to work accordingly.
This commit is contained in:
parent
7b9adce5d0
commit
52aba7a1cb
|
@ -80,9 +80,8 @@ export class UserNotificationsComponent implements OnInit {
|
||||||
onNearOfBottom () {
|
onNearOfBottom () {
|
||||||
if (this.infiniteScroll === false) return
|
if (this.infiniteScroll === false) return
|
||||||
|
|
||||||
this.componentPagination.currentPage++
|
|
||||||
|
|
||||||
if (hasMoreItems(this.componentPagination)) {
|
if (hasMoreItems(this.componentPagination)) {
|
||||||
|
this.componentPagination.currentPage++
|
||||||
this.loadNotifications()
|
this.loadNotifications()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue