mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
66155: Fixed 'hide last x' algorithm
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
<div *ngIf="limit > originalLimit" class="float-right">
|
||||
<a [routerLink]="" (click)="viewLess()">{{'item.page.related-items.view-less' |
|
||||
translate:{ amount: (representations?.length < limit) ? limit - representations?.length : incrementBy } }}</a>
|
||||
translate:{ amount: (representations?.length < limit) ? (representations?.length + incrementBy) - limit : incrementBy } }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</div>
|
||||
<div *ngIf="limit > originalLimit" class="float-right" id="view-less">
|
||||
<a [routerLink]="" (click)="viewLess()">{{'item.page.related-items.view-less' |
|
||||
translate:{ amount: (itemsRD?.payload?.page?.length < limit) ? limit - itemsRD?.payload?.page?.length : incrementBy } }}</a>
|
||||
translate:{ amount: (itemsRD?.payload?.page?.length < limit) ? (itemsRD?.payload?.page?.length + incrementBy) - limit : incrementBy } }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
Reference in New Issue
Block a user