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"
|
source="name"
|
||||||
class="full-width name-column">
|
class="full-width name-column">
|
||||||
</content-column>
|
</content-column>
|
||||||
<content-column
|
|
||||||
title="{{'DOCUMENT_LIST.COLUMNS.SITE' | translate}}"
|
|
||||||
source="location.site">
|
|
||||||
</content-column>
|
|
||||||
<content-column
|
<content-column
|
||||||
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_BY' | translate}}"
|
title="{{'DOCUMENT_LIST.COLUMNS.CREATED_BY' | translate}}"
|
||||||
source="createdByUser.displayName">
|
source="createdByUser.displayName">
|
||||||
@ -78,4 +74,4 @@
|
|||||||
</alfresco-document-list>
|
</alfresco-document-list>
|
||||||
</alfresco-upload-drag-area>
|
</alfresco-upload-drag-area>
|
||||||
|
|
||||||
<alfresco-upload-button uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}" (onSuccess)="refreshDocumentList($event)"></alfresco-upload-button>
|
<alfresco-upload-button uploaddirectory="{{relativePath}}" currentFolderPath="{{absolutePath}}" (onSuccess)="refreshDocumentList($event)"></alfresco-upload-button>
|
||||||
|
@ -349,9 +349,13 @@ export class DocumentList implements OnInit, AfterViewChecked, AfterContentInit
|
|||||||
if (this._hasEntries(node)) {
|
if (this._hasEntries(node)) {
|
||||||
node.list.entries.sort((a: MinimalNodeEntity, b: MinimalNodeEntity) => {
|
node.list.entries.sort((a: MinimalNodeEntity, b: MinimalNodeEntity) => {
|
||||||
if (a.entry.isFolder !== b.entry.isFolder) {
|
if (a.entry.isFolder !== b.entry.isFolder) {
|
||||||
|
// Uncomment if it is needed to make files go top on desc
|
||||||
|
/*
|
||||||
return options.direction === 'asc'
|
return options.direction === 'asc'
|
||||||
? (a.entry.isFolder ? -1 : 1)
|
? (a.entry.isFolder ? -1 : 1)
|
||||||
: (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();
|
let left = this.getObjectValue(a.entry, options.key).toString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user