mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
#9 Minor fixes for document list
This commit is contained in:
parent
be9c07f2f5
commit
49b74cfbc6
@ -8,10 +8,6 @@
|
||||
source="name"
|
||||
class="full-width name-column">
|
||||
</content-column>
|
||||
<content-column
|
||||
title="{{'DOCUMENT_LIST.COLUMNS.SITE' | translate}}"
|
||||
source="location.site">
|
||||
</content-column>
|
||||
<content-column
|
||||
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_BY' | translate}}"
|
||||
source="createdByUser.displayName">
|
||||
|
@ -349,9 +349,13 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
||||
if (this._hasEntries(node)) {
|
||||
node.list.entries.sort((a: MinimalNodeEntity, b: MinimalNodeEntity) => {
|
||||
if (a.entry.isFolder !== b.entry.isFolder) {
|
||||
// Uncomment if it is needed to make files go top on desc
|
||||
/*
|
||||
return options.direction === 'asc'
|
||||
? (a.entry.isFolder ? -1 : 1)
|
||||
: (a.entry.isFolder ? 1 : -1);
|
||||
*/
|
||||
return a.entry.isFolder ? -1 : 1;
|
||||
}
|
||||
|
||||
let left = this.getObjectValue(a.entry, options.key).toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user