mirror of https://github.com/Chocobozzz/PeerTube
Don't display no results if still loading
parent
612dd3c3f5
commit
c356907b71
|
@ -207,6 +207,8 @@ export class VideosListComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
loadMoreVideos (reset = false) {
|
loadMoreVideos (reset = false) {
|
||||||
|
if (reset) this.hasDoneFirstQuery = false
|
||||||
|
|
||||||
this.getVideosObservableFunction(this.pagination, this.filters)
|
this.getVideosObservableFunction(this.pagination, this.filters)
|
||||||
.subscribe({
|
.subscribe({
|
||||||
next: ({ data }) => {
|
next: ({ data }) => {
|
||||||
|
|
|
@ -110,6 +110,8 @@ export class VideosSelectionComponent implements AfterContentInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
loadMoreVideos (reset = false) {
|
loadMoreVideos (reset = false) {
|
||||||
|
if (reset) this.hasDoneFirstQuery = false
|
||||||
|
|
||||||
this.getVideosObservable(this.pagination.currentPage)
|
this.getVideosObservable(this.pagination.currentPage)
|
||||||
.subscribe({
|
.subscribe({
|
||||||
next: ({ data }) => {
|
next: ({ data }) => {
|
||||||
|
|
Loading…
Reference in New Issue