diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-08 10:46:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-08 10:46:12 +0100 |
commit | 6a6d92b1ecca1dfcf4b13f291553f2485814f730 (patch) | |
tree | e586f275460e888374a131d65d73296bb8a3a8e9 /client/src/app/shared/video/abstract-video-list.ts | |
parent | 2b3b76abb0c363d85ff5c831afd541a9c6982e76 (diff) | |
download | PeerTube-6a6d92b1ecca1dfcf4b13f291553f2485814f730.tar.gz PeerTube-6a6d92b1ecca1dfcf4b13f291553f2485814f730.tar.zst PeerTube-6a6d92b1ecca1dfcf4b13f291553f2485814f730.zip |
Fix infinite scroll
Diffstat (limited to 'client/src/app/shared/video/abstract-video-list.ts')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index 16ff38558..abc9feb06 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -125,7 +125,7 @@ export abstract class AbstractVideoList implements OnInit { | |||
125 | if (!this.pagination.totalItems) return true | 125 | if (!this.pagination.totalItems) return true |
126 | 126 | ||
127 | const maxPage = this.pagination.totalItems / this.pagination.itemsPerPage | 127 | const maxPage = this.pagination.totalItems / this.pagination.itemsPerPage |
128 | return maxPage > this.pagination.currentPage | 128 | return maxPage > this.maxPageLoaded() |
129 | } | 129 | } |
130 | 130 | ||
131 | protected previousPage () { | 131 | protected previousPage () { |