diff options
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.ts b/client/src/app/shared/video/abstract-video-list.ts index 746359851..3e3583a70 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -146,11 +146,11 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
146 | this.loadMoreVideos() | 146 | this.loadMoreVideos() |
147 | } | 147 | } |
148 | 148 | ||
149 | loadMoreVideos () { | 149 | loadMoreVideos (reset = false) { |
150 | this.getVideosObservable(this.pagination.currentPage).subscribe( | 150 | this.getVideosObservable(this.pagination.currentPage).subscribe( |
151 | ({ data, total }) => { | 151 | ({ data, total }) => { |
152 | this.pagination.totalItems = total | 152 | this.pagination.totalItems = total |
153 | this.videos = [] | 153 | if (reset) this.videos = [] |
154 | this.videos = this.videos.concat(data) | 154 | this.videos = this.videos.concat(data) |
155 | 155 | ||
156 | if (this.groupByDate) this.buildGroupedDateLabels() | 156 | if (this.groupByDate) this.buildGroupedDateLabels() |
@@ -171,7 +171,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
171 | 171 | ||
172 | reloadVideos () { | 172 | reloadVideos () { |
173 | this.pagination.currentPage = 1 | 173 | this.pagination.currentPage = 1 |
174 | this.loadMoreVideos() | 174 | this.loadMoreVideos(true) |
175 | } | 175 | } |
176 | 176 | ||
177 | toggleModerationDisplay () { | 177 | toggleModerationDisplay () { |