Code improvements

This commit is contained in:
Denys Vuika
2016-07-05 21:36:37 +01:00
parent 0f0c5352c7
commit ce23d73293
3 changed files with 17 additions and 15 deletions

View File

@@ -34,7 +34,6 @@ import { CONTEXT_MENU_DIRECTIVES } from 'ng2-alfresco-core';
import {
ALFRESCO_DATATABLE_DIRECTIVES,
DataSorting,
DataRowEvent,
DataTableComponent,
ObjectDataColumn
@@ -128,7 +127,7 @@ export class DocumentList implements OnInit, AfterViewInit, AfterViewChecked, Af
private documentListService: DocumentListService,
private ngZone: NgZone) {
this.setupData();
this.data = new ShareDataTableAdapter(this.documentListService, this.baseComponentPath, []);
}
getContextActions(node: MinimalNodeEntity) {
@@ -328,11 +327,6 @@ export class DocumentList implements OnInit, AfterViewInit, AfterViewChecked, Af
}
}
private setupData() {
this.data = new ShareDataTableAdapter(this.documentListService, this.baseComponentPath, []);
this.data.setSorting(new DataSorting('id', 'asc'));
}
onShowRowContextMenu(event) {
if (this.contextMenuActions) {
let args = event.args;