mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10083] Filter not behaving correctly in file and site (#11237)
* [ACS-10083]: fixes setValue flow; handles initial stream values properly * [ACS-10083]: migrates to category.id instead of column key for filter key * [ACS-10083]: refactoring to prevent setting nullish query * [ACS-10083]: unit tests * [ACS-10083]: adds method for getting operator by category id * [ACS-10083]: removes API call trigger from component on initial value set * [ACS-10083]: adds data for building initial query after page reload * [ACS-10083]: removes nodes API call if has filter in query * [ACS-10083]: no need to call submit inside of the comp on initial value * [ACS-10083]: updated unit tests * [ACS-10083]: minor fixes and refactorings * [ACS-10083]: removes redundant types
This commit is contained in:
@@ -599,7 +599,7 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
}
|
||||
|
||||
if (this.currentFolderId && changes['currentFolderId']?.currentValue !== changes['currentFolderId']?.previousValue) {
|
||||
this.loadFolder();
|
||||
!this.filterValue && this.loadFolder();
|
||||
}
|
||||
|
||||
if (this.data) {
|
||||
@@ -816,7 +816,6 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
this.preserveExistingSelection();
|
||||
}
|
||||
this.onPreselectNodes();
|
||||
this.setLoadingState(false);
|
||||
this.onDataReady(nodePaging);
|
||||
}
|
||||
}
|
||||
@@ -1023,6 +1022,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