diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.spec.ts index 1966d9b6fe..ab9d4dab78 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.spec.ts @@ -52,9 +52,8 @@ describe('ContentColumn', () => { }); it('should setup screen reader title for thumbnail column', () => { - let column = new ContentColumn(columnList, { - key: '$thumbnail' - }); + let column = new ContentColumn(columnList); + column.key = '$thumbnail'; column.ngOnInit(); expect(column.srTitle).toBe('Thumbnail'); diff --git a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts index 7c5808898a..3f5f715f6d 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/components/content-column.ts @@ -49,17 +49,7 @@ export class ContentColumn implements OnInit, DataColumn { @Input('class') cssClass: string; - constructor(private list: ContentColumnList, opts?: any) { - if (opts) { - this.key = opts.key; - this.type = opts.type || 'text'; - this.format = opts.format; - this.sortable = opts.sortable ? true : false; - this.title = opts.title || ''; - this.srTitle = opts.srTitle; - this.cssClass = opts.cssClass; - } - } + constructor(private list: ContentColumnList) {} ngOnInit() { if (!this.srTitle && this.key === '$thumbnail') { diff --git a/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.ts b/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.ts index 95b1cc5ff8..49836af6b0 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/data/share-datatable-adapter.ts @@ -184,7 +184,7 @@ export class ShareDataTableAdapter implements DataTableAdapter { } } - this.rows = []; + this.rows = rows; }, error => console.log(error)); }