mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
app directives (#439)
* pagination directive * document list directive * cleanup code * cleanup code * unified includeFields
This commit is contained in:
@@ -8,16 +8,11 @@
|
||||
|
||||
<div class="inner-layout__content">
|
||||
<div class="inner-layout__panel">
|
||||
<adf-document-list #documentList
|
||||
[includeFields]="['isFavorite']"
|
||||
<adf-document-list acaDocumentList #documentList
|
||||
currentFolderId="-mysites-"
|
||||
selectionMode="none"
|
||||
[navigate]="false"
|
||||
[sorting]="[ 'title', 'asc' ]"
|
||||
[acaSortingPreferenceKey]="sortingPreferenceKey"
|
||||
(ready)="onDocumentListReady($event, documentList)"
|
||||
(node-select)="onNodeSelect($event, documentList)"
|
||||
(node-unselect)="onNodeUnselect($event, documentList)"
|
||||
(node-dblclick)="onNodeDoubleClick($event)">
|
||||
|
||||
<empty-folder-content>
|
||||
@@ -67,10 +62,7 @@
|
||||
</data-columns>
|
||||
</adf-document-list>
|
||||
|
||||
<adf-pagination
|
||||
[supportedPageSizes]="'pagination.supportedPageSizes' | adfAppConfig"
|
||||
[target]="documentList"
|
||||
(changePageSize)="onChangePageSize($event)">
|
||||
<adf-pagination acaPagination [target]="documentList">
|
||||
</adf-pagination>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
import { Component } from '@angular/core';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { NodesApiService, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import { NodesApiService } from '@alfresco/adf-core';
|
||||
import { ShareDataRow } from '@alfresco/adf-content-services';
|
||||
|
||||
import { PageComponent } from '../page.component';
|
||||
@@ -38,11 +38,10 @@ import { AppStore } from '../../store/states/app.state';
|
||||
export class LibrariesComponent extends PageComponent {
|
||||
|
||||
constructor(private nodesApi: NodesApiService,
|
||||
route: ActivatedRoute,
|
||||
private route: ActivatedRoute,
|
||||
store: Store<AppStore>,
|
||||
private router: Router,
|
||||
preferences: UserPreferencesService) {
|
||||
super(preferences, route, store);
|
||||
private router: Router) {
|
||||
super(store);
|
||||
}
|
||||
|
||||
makeLibraryTooltip(library: any): string {
|
||||
|
Reference in New Issue
Block a user