diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-28 01:10:26 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-28 01:10:26 +0100 |
commit | bf64ed4196938ba9002c887cadb01bd2a6e3127a (patch) | |
tree | 889b8f89c59cd513edd973785a76ccf6f8c23f3d /client/src/app/shared/video/abstract-video-list.ts | |
parent | 71810d0bcbed0e46ddaa1d4eadd028154786fffb (diff) | |
download | PeerTube-bf64ed4196938ba9002c887cadb01bd2a6e3127a.tar.gz PeerTube-bf64ed4196938ba9002c887cadb01bd2a6e3127a.tar.zst PeerTube-bf64ed4196938ba9002c887cadb01bd2a6e3127a.zip |
Add search bars for a user's videos and playlist library
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 a2a12bec7..746359851 100644 --- a/client/src/app/shared/video/abstract-video-list.ts +++ b/client/src/app/shared/video/abstract-video-list.ts | |||
@@ -150,6 +150,7 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
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 | this.videos = this.videos.concat(data) | 154 | this.videos = this.videos.concat(data) |
154 | 155 | ||
155 | if (this.groupByDate) this.buildGroupedDateLabels() | 156 | if (this.groupByDate) this.buildGroupedDateLabels() |
@@ -170,7 +171,6 @@ export abstract class AbstractVideoList implements OnInit, OnDestroy, DisableFor | |||
170 | 171 | ||
171 | reloadVideos () { | 172 | reloadVideos () { |
172 | this.pagination.currentPage = 1 | 173 | this.pagination.currentPage = 1 |
173 | this.videos = [] | ||
174 | this.loadMoreVideos() | 174 | this.loadMoreVideos() |
175 | } | 175 | } |
176 | 176 | ||