[ACA-3542] - added sorting for filters (#5932)

* [ACA-3542] - added sorting for filters

* [ACA-3542] - removed wrong parameter

* [ACA-3542] - fixed test with fixed sorting mode parameter

* Update content-node-selector-panel.component.html

* fix e2e

* fix delete site

Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
This commit is contained in:
Vito
2020-08-03 10:30:14 +01:00
committed by GitHub
parent bfbb66ea8e
commit 85183ead0d
25 changed files with 114 additions and 27 deletions

View File

@@ -88,7 +88,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
processId;
@Input()
sorting = ['nodeType', 'DESC'];
sorting = ['name', 'ASC'];
@Input()
sortingMode = 'server';
@@ -163,7 +163,10 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
enableCustomHeaderFilter = false;
@Input()
paramValues: Map <any, any> = null;
paramValues: Map<any, any> = null;
@Input()
filterSorting: string = null;
@Output()
documentListReady: EventEmitter<any> = new EventEmitter();
@@ -208,7 +211,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
enableMediumTimeFormat = false;
displayEmptyMetadata = false;
hyperlinkNavigation = false;
filtersStates: any[] = [];
filteredSorting: string[] = null;
constructor(private notificationService: NotificationService,
private uploadService: UploadService,