mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10835] Add new param for recent filters in custom resources services (#11428)
* [ACS-10835] Add new param for recent filters in custom resources services * [ACS-10835] CR fixes
This commit is contained in:
@@ -154,6 +154,12 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
@Input()
|
||||
where: string;
|
||||
|
||||
/**
|
||||
* Specifies additional filters to apply (joined with **AND**). Applied for recent files only.
|
||||
*/
|
||||
@Input()
|
||||
filters: string[];
|
||||
|
||||
/**
|
||||
* Define a set of CSS styles to apply depending on the permission
|
||||
* of the user on that node. See the Permission Style model
|
||||
@@ -789,18 +795,20 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On
|
||||
this.updateCustomSourceData(this.currentFolderId);
|
||||
}
|
||||
|
||||
this.documentListService.loadFolderByNodeId(this.currentFolderId, this._pagination, this.includeFields, this.where, this.orderBy).subscribe(
|
||||
(documentNode: DocumentLoaderNode) => {
|
||||
if (documentNode.currentNode) {
|
||||
this.folderNode = documentNode.currentNode.entry;
|
||||
this.$folderNode.next(documentNode.currentNode.entry);
|
||||
this.documentListService
|
||||
.loadFolderByNodeId(this.currentFolderId, this._pagination, this.includeFields, this.where, this.orderBy, this.filters)
|
||||
.subscribe({
|
||||
next: (documentNode: DocumentLoaderNode) => {
|
||||
if (documentNode.currentNode) {
|
||||
this.folderNode = documentNode.currentNode.entry;
|
||||
this.$folderNode.next(documentNode.currentNode.entry);
|
||||
}
|
||||
this.onPageLoaded(documentNode.children);
|
||||
},
|
||||
error: (err) => {
|
||||
this.handleError(err);
|
||||
}
|
||||
this.onPageLoaded(documentNode.children);
|
||||
},
|
||||
(err) => {
|
||||
this.handleError(err);
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
resetSelection() {
|
||||
|
||||
Reference in New Issue
Block a user