mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
68346: page-hover fix + pageSize reverted to 10
This commit is contained in:
@@ -52,7 +52,7 @@ export abstract class AbstractPaginatedDragAndDropListComponent<T extends DSpace
|
|||||||
/**
|
/**
|
||||||
* The amount of objects to display per page
|
* The amount of objects to display per page
|
||||||
*/
|
*/
|
||||||
pageSize = 2;
|
pageSize = 10;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The page options to use for fetching the objects
|
* The page options to use for fetching the objects
|
||||||
@@ -152,7 +152,7 @@ export abstract class AbstractPaginatedDragAndDropListComponent<T extends DSpace
|
|||||||
drop(event: CdkDragDrop<any>) {
|
drop(event: CdkDragDrop<any>) {
|
||||||
// Check if the user is hovering over any of the pagination's pages at the time of dropping the object
|
// Check if the user is hovering over any of the pagination's pages at the time of dropping the object
|
||||||
const droppedOnElement = this.elRef.nativeElement.querySelector('.page-item:hover');
|
const droppedOnElement = this.elRef.nativeElement.querySelector('.page-item:hover');
|
||||||
if (isNotEmpty(droppedOnElement)) {
|
if (hasValue(droppedOnElement) && hasValue(droppedOnElement.textContent)) {
|
||||||
// The user is hovering over a page, fetch the page's number from the element
|
// The user is hovering over a page, fetch the page's number from the element
|
||||||
const page = Number(droppedOnElement.textContent);
|
const page = Number(droppedOnElement.textContent);
|
||||||
if (hasValue(page) && !Number.isNaN(page)) {
|
if (hasValue(page) && !Number.isNaN(page)) {
|
||||||
|
Reference in New Issue
Block a user