mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Order by folder (#5945)
This commit is contained in:
@@ -1451,7 +1451,7 @@ describe('DocumentList', () => {
|
||||
where: undefined,
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
orderBy: ['nodeType DESC', 'name asc' ],
|
||||
orderBy: ['isFolder DESC', 'name asc' ],
|
||||
rootFolderId: 'fake-id'
|
||||
}, ['test-include']);
|
||||
});
|
||||
@@ -1467,7 +1467,7 @@ describe('DocumentList', () => {
|
||||
where: '(isFolder=true)',
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
orderBy: ['nodeType DESC', 'name asc' ],
|
||||
orderBy: ['isFolder DESC', 'name asc' ],
|
||||
rootFolderId: 'fake-id'
|
||||
}, ['test-include']);
|
||||
});
|
||||
@@ -1484,7 +1484,7 @@ describe('DocumentList', () => {
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
where: undefined,
|
||||
orderBy: ['nodeType DESC', 'size DESC'],
|
||||
orderBy: ['isFolder DESC', 'size DESC'],
|
||||
rootFolderId: 'fake-id'
|
||||
}, ['test-include']);
|
||||
});
|
||||
@@ -1502,7 +1502,7 @@ describe('DocumentList', () => {
|
||||
expect(documentListService.getFolder).toHaveBeenCalledWith(null, {
|
||||
maxItems: 25,
|
||||
skipCount: 0,
|
||||
orderBy: ['nodeType DESC', 'name asc' ],
|
||||
orderBy: ['isFolder DESC', 'name asc' ],
|
||||
rootFolderId: 'folder-id',
|
||||
where: undefined
|
||||
}, undefined);
|
||||
|
@@ -190,7 +190,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
||||
* rule to be added to the sorting apart from the one driven by the header.
|
||||
*/
|
||||
@Input()
|
||||
additionalSorting = ['nodeType DESC'];
|
||||
additionalSorting = ['isFolder DESC'];
|
||||
|
||||
/** Defines sorting mode. Can be either `client` (items in the list
|
||||
* are sorted client-side) or `server` (the ordering supplied by the
|
||||
|
Reference in New Issue
Block a user