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 /client/src/app/shared/shared-video-miniature/videos-selection.component.ts | |
parent | 612dd3c3f5745bac2e5ca914e36284ed61c7b84f (diff) | |
download | PeerTube-c356907b71855c5ee8199d2ab647eb6a377c9c6a.tar.gz PeerTube-c356907b71855c5ee8199d2ab647eb6a377c9c6a.tar.zst PeerTube-c356907b71855c5ee8199d2ab647eb6a377c9c6a.zip |
Don't display no results if still loading
Diffstat (limited to 'client/src/app/shared/shared-video-miniature/videos-selection.component.ts')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/videos-selection.component.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 }) => { |