mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
document-list improvements (#1169)
* #1167 document-list improvements - allow setting custom root path - document-list module now re-exports datatable module (no need importing it separately if document-list is already used) - documentation updates and fixes * readme updates and unit test
This commit is contained in:
committed by
Eugenio Romano
parent
132e6eac96
commit
9066ce49e0
@@ -63,7 +63,12 @@ export class DocumentListService {
|
||||
}
|
||||
|
||||
private getNodesPromise(folder: string, opts?: any): Promise<NodePaging> {
|
||||
let nodeId = '-root-';
|
||||
let rootPath = '-root-';
|
||||
|
||||
if (opts && opts.rootPath) {
|
||||
rootPath = opts.rootPath;
|
||||
}
|
||||
|
||||
let params: any = {
|
||||
relativePath: folder,
|
||||
include: ['path', 'properties']
|
||||
@@ -78,7 +83,7 @@ export class DocumentListService {
|
||||
}
|
||||
}
|
||||
|
||||
return this.apiService.getInstance().nodes.getNodeChildren(nodeId, params);
|
||||
return this.apiService.getInstance().nodes.getNodeChildren(rootPath, params);
|
||||
}
|
||||
|
||||
deleteNode(nodeId: string): Observable<any> {
|
||||
|
Reference in New Issue
Block a user