mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-10083 Fixes filters behavior with queryParams (#11426)
* [ACS-10083]: aadds populateFilters value safe check * [ACS-10083]: introduces property to postpone document-list data load * [ACS-10083]: migrates to using category id as a key instead of column key * [ACS-10083]: excludes excessive Search API calls * [ACS-10083]: updates user query setting * [ACS-10083]: sonar qube fix * [ACS-10083]: tests refactor * [ACS-10083]: fixes tests * [ACS-10083]: restores isFilterServiceActive prop initializer
This commit is contained in:
@@ -373,6 +373,13 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
@Input()
|
||||
displayDragAndDropHint = true;
|
||||
|
||||
/**
|
||||
* Indicates if the data is provided externally.
|
||||
* If true the component won't fetch data itself
|
||||
*/
|
||||
@Input()
|
||||
isDataProvidedExternally = false;
|
||||
|
||||
/** Emitted when the user clicks a list node */
|
||||
@Output()
|
||||
nodeClick = new EventEmitter<NodeEntityEvent>();
|
||||
@@ -598,7 +605,7 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
}
|
||||
|
||||
if (this.currentFolderId && changes['currentFolderId']?.currentValue !== changes['currentFolderId']?.previousValue) {
|
||||
this.loadFolder();
|
||||
!this.isDataProvidedExternally && this.loadFolder();
|
||||
}
|
||||
|
||||
if (this.data) {
|
||||
@@ -1024,6 +1031,7 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
private onDataReady(nodePaging: NodePaging) {
|
||||
this.ready.emit(nodePaging);
|
||||
this.pagination.next(nodePaging.list.pagination);
|
||||
this.setLoadingState(false);
|
||||
}
|
||||
|
||||
updatePagination(requestPaginationModel: RequestPaginationModel) {
|
||||
|
||||
Reference in New Issue
Block a user