aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-29 02:10:17 +0100
committerRigel Kent <sendmemail@rigelk.eu>2019-12-29 02:10:17 +0100
commit9d45db2919862640ad550c5326fb21ddc08d6d59 (patch)
treecfc6780f1180cd40536e0cdd8ad4383675475f42 /client/src/app/shared/video
parentc62a34d36bf498cb81c6611e58079535325b92d8 (diff)
downloadPeerTube-9d45db2919862640ad550c5326fb21ddc08d6d59.tar.gz
PeerTube-9d45db2919862640ad550c5326fb21ddc08d6d59.tar.zst
PeerTube-9d45db2919862640ad550c5326fb21ddc08d6d59.zip
Fix my-account{videos,video-playlists} loading mecanism
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r--client/src/app/shared/video/abstract-video-list.ts6
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 () {