mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
41914: DSO list finished without item count
This commit is contained in:
11
src/app/object-list/object-list.component.html
Normal file
11
src/app/object-list/object-list.component.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<ds-pagination [paginationOptions]="config"
|
||||
[collectionSize]="(objects.payload | async)?.length"
|
||||
(pageChange)="config.currentPage = $event"
|
||||
(pageSizeChange)="config.pageSize = $event">
|
||||
<ul *ngIf="objects.hasSucceeded | async">
|
||||
<li *ngFor="let object of (objects.payload | async) | paginate: { itemsPerPage: config.pageSize, currentPage: config.currentPage, totalItems: (objects.payload | async)?.length }">
|
||||
<ds-object-list-element [object]="object"></ds-object-list-element>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</ds-pagination>
|
Reference in New Issue
Block a user