diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-08 11:19:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-02-09 11:54:18 +0100 |
commit | c356907b71855c5ee8199d2ab647eb6a377c9c6a (patch) | |
tree | fc28b069ab3c0da4f80781894d63389bff1ecb32 | |
parent | 612dd3c3f5745bac2e5ca914e36284ed61c7b84f (diff) | |
download | PeerTube-c356907b71855c5ee8199d2ab647eb6a377c9c6a.tar.gz PeerTube-c356907b71855c5ee8199d2ab647eb6a377c9c6a.tar.zst PeerTube-c356907b71855c5ee8199d2ab647eb6a377c9c6a.zip |
Don't display no results if still loading
-rw-r--r-- | client/src/app/shared/shared-video-miniature/videos-list.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-miniature/videos-selection.component.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-video-miniature/videos-list.component.ts b/client/src/app/shared/shared-video-miniature/videos-list.component.ts index 3db835257..9a7ec7efa 100644 --- a/client/src/app/shared/shared-video-miniature/videos-list.component.ts +++ b/client/src/app/shared/shared-video-miniature/videos-list.component.ts | |||
@@ -207,6 +207,8 @@ export class VideosListComponent implements OnInit, OnChanges, OnDestroy { | |||
207 | } | 207 | } |
208 | 208 | ||
209 | loadMoreVideos (reset = false) { | 209 | loadMoreVideos (reset = false) { |
210 | if (reset) this.hasDoneFirstQuery = false | ||
211 | |||
210 | this.getVideosObservableFunction(this.pagination, this.filters) | 212 | this.getVideosObservableFunction(this.pagination, this.filters) |
211 | .subscribe({ | 213 | .subscribe({ |
212 | next: ({ data }) => { | 214 | next: ({ data }) => { |
diff --git a/client/src/app/shared/shared-video-miniature/videos-selection.component.ts b/client/src/app/shared/shared-video-miniature/videos-selection.component.ts index cafaf6e85..bac828fba 100644 --- a/client/src/app/shared/shared-video-miniature/videos-selection.component.ts +++ b/client/src/app/shared/shared-video-miniature/videos-selection.component.ts | |||
@@ -110,6 +110,8 @@ export class VideosSelectionComponent implements AfterContentInit { | |||
110 | } | 110 | } |
111 | 111 | ||
112 | loadMoreVideos (reset = false) { | 112 | loadMoreVideos (reset = false) { |
113 | if (reset) this.hasDoneFirstQuery = false | ||
114 | |||
113 | this.getVideosObservable(this.pagination.currentPage) | 115 | this.getVideosObservable(this.pagination.currentPage) |
114 | .subscribe({ | 116 | .subscribe({ |
115 | next: ({ data }) => { | 117 | next: ({ data }) => { |