mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
62849: progress july 5
This commit is contained in:
@@ -328,13 +328,19 @@ export class PaginationComponent implements OnDestroy, OnInit {
|
||||
* Method to emit a general pagination change event
|
||||
*/
|
||||
private emitPaginationChange() {
|
||||
this.paginationChange.emit({
|
||||
pageId: this.id,
|
||||
page: this.currentPage,
|
||||
pageSize: this.pageSize,
|
||||
sortDirection: this.sortDirection,
|
||||
sortField: this.sortField
|
||||
});
|
||||
this.paginationChange.emit(
|
||||
{
|
||||
pagination: Object.assign(
|
||||
new PaginationComponentOptions(),
|
||||
{
|
||||
id: this.id,
|
||||
currentPage: this.currentPage,
|
||||
pageSize: this.pageSize,
|
||||
}),
|
||||
sort: Object.assign(
|
||||
new SortOptions(this.sortField, this.sortDirection)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user