[AAE-3326] Content node selector - sort files by createdAt desc by de… (#6674)

* [AAE-3326] Content node selector - sort files by createdAt desc by default

* Fix process custom filter cloud e2e
This commit is contained in:
arditdomi
2021-02-16 16:16:06 +01:00
committed by GitHub
parent cf0c95b3d1
commit 76ac996c48
4 changed files with 36 additions and 3 deletions

View File

@@ -36,7 +36,9 @@ import {
UploadService,
FileUploadCompleteEvent,
FileUploadDeleteEvent,
FileModel
FileModel,
AppConfigService,
DataSorting
} from '@alfresco/adf-core';
import { FormControl } from '@angular/forms';
import { Node, NodePaging, Pagination, SiteEntry, SitePaging, NodeEntry, QueryBody, RequestScope } from '@alfresco/js-api';
@@ -250,6 +252,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
target: PaginatedComponent;
preselectedNodes: NodeEntry[] = [];
sorting: string[] | DataSorting;
searchPanelExpanded: boolean = false;
@@ -261,6 +264,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
private nodesApiService: NodesApiService,
private uploadService: UploadService,
private sitesService: SitesService,
private appConfigService: AppConfigService,
private contentNodeSelectorPanelService: ContentNodeSelectorPanelService) {
}
@@ -331,6 +335,8 @@ export class ContentNodeSelectorPanelComponent implements OnInit, OnDestroy {
.subscribe((currentNode: Node) => {
this.currentFolder.emit(currentNode);
});
this.sorting = this.appConfigService.get('adf-content-node-selector.sorting', ['createdAt', 'desc']);
}
ngOnDestroy() {