mirror of https://github.com/Chocobozzz/PeerTube
Fix no history message
parent
369e77543b
commit
3fba4b6bce
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="no-history" i18n *ngIf="pagination.totalItems === 0">You don't have any video history yet.</div>
|
<div class="no-history" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">You don't have any video history yet.</div>
|
||||||
|
|
||||||
<div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" class="videos">
|
<div myInfiniteScroller (nearOfBottom)="onNearOfBottom()" [autoInit]="true" [dataObservable]="onDataSubject.asObservable()" class="videos">
|
||||||
<div class="video" *ngFor="let video of videos">
|
<div class="video" *ngFor="let video of videos">
|
||||||
|
|
|
@ -4,7 +4,7 @@ export interface ComponentPagination {
|
||||||
totalItems: number
|
totalItems: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ComponentPaginationLight = Omit<ComponentPagination, 'totalItems'>
|
export type ComponentPaginationLight = Omit<ComponentPagination, 'totalItems'> & { totalItems?: number }
|
||||||
|
|
||||||
export function hasMoreItems (componentPagination: ComponentPagination) {
|
export function hasMoreItems (componentPagination: ComponentPagination) {
|
||||||
// No results
|
// No results
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="no-results" i18n *ngIf="pagination.totalItems === 0">No results.</div>
|
<div class="no-results" i18n *ngIf="hasDoneFirstQuery && videos.length === 0">No results.</div>
|
||||||
|
|
||||||
<div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" class="videos">
|
<div myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()" class="videos">
|
||||||
<div class="video" *ngFor="let video of videos; let i = index; trackBy: videoById">
|
<div class="video" *ngFor="let video of videos; let i = index; trackBy: videoById">
|
||||||
|
|
Loading…
Reference in New Issue