aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-19 16:52:45 +0100
committerChocobozzz <me@florianbigard.com>2020-11-19 16:52:45 +0100
commit3fba4b6bce69247b1d37f923894d8f44818a891c (patch)
tree968aa2a65ace627ea3b73a1a60587926614ed96b /client/src/app
parent369e77543b0e2cd24f2353dcf6a715fca350556c (diff)
downloadPeerTube-3fba4b6bce69247b1d37f923894d8f44818a891c.tar.gz
PeerTube-3fba4b6bce69247b1d37f923894d8f44818a891c.tar.zst
PeerTube-3fba4b6bce69247b1d37f923894d8f44818a891c.zip
Fix no history message
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+my-library/my-history/my-history.component.html2
-rw-r--r--client/src/app/core/rest/component-pagination.model.ts2
-rw-r--r--client/src/app/shared/shared-video-miniature/videos-selection.component.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+my-library/my-history/my-history.component.html b/client/src/app/+my-library/my-history/my-history.component.html
index 05e016e55..58b874ebf 100644
--- a/client/src/app/+my-library/my-history/my-history.component.html
+++ b/client/src/app/+my-library/my-history/my-history.component.html
@@ -16,7 +16,7 @@
16</div> 16</div>
17 17
18 18
19<div class="no-history" i18n *ngIf="pagination.totalItems === 0">You don't have any video history yet.</div> 19<div class="no-history" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">You don't have any video history yet.</div>
20 20
21<div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" class="videos"> 21<div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" class="videos">
22 <div class="video" *ngFor="let video of videos"> 22 <div class="video" *ngFor="let video of videos">
diff --git a/client/src/app/core/rest/component-pagination.model.ts b/client/src/app/core/rest/component-pagination.model.ts
index bcb73ed0f..59d70c1e8 100644
--- a/client/src/app/core/rest/component-pagination.model.ts
+++ b/client/src/app/core/rest/component-pagination.model.ts
@@ -4,7 +4,7 @@ export interface ComponentPagination {
4 totalItems: number 4 totalItems: number
5} 5}
6 6
7export type ComponentPaginationLight = Omit<ComponentPagination, 'totalItems'> 7export type ComponentPaginationLight = Omit<ComponentPagination, 'totalItems'> & { totalItems?: number }
8 8
9export function hasMoreItems (componentPagination: ComponentPagination) { 9export function hasMoreItems (componentPagination: ComponentPagination) {
10 // No results 10 // No results
diff --git a/client/src/app/shared/shared-video-miniature/videos-selection.component.html b/client/src/app/shared/shared-video-miniature/videos-selection.component.html
index 44aa567b9..5f5593512 100644
--- a/client/src/app/shared/shared-video-miniature/videos-selection.component.html
+++ b/client/src/app/shared/shared-video-miniature/videos-selection.component.html
@@ -1,4 +1,4 @@
1<div class="no-results" i18n *ngIf="pagination.totalItems === 0">No results.</div> 1<div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div>
2 2
3<div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" class="videos"> 3<div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" class="videos">
4 <div class="video" *ngFor="let video of videos; let i = index; trackBy: videoById"> 4 <div class="video" *ngFor="let video of videos; let i = index; trackBy: videoById">