mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
id-based navigation (initial implementation)
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Response } from '@angular/http';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import { NodePaging, MinimalNodeEntity } from 'alfresco-js-api';
|
||||
import { NodePaging, MinimalNodeEntity, MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||
import { AuthService, ContentService, AlfrescoApiService } from 'ng2-alfresco-core';
|
||||
|
||||
@Injectable()
|
||||
@@ -121,6 +121,17 @@ export class DocumentListService {
|
||||
.catch(this.handleError);
|
||||
}
|
||||
|
||||
getFolderNode(nodeId: string): Promise<MinimalNodeEntryEntity> {
|
||||
let opts: any = {
|
||||
includeSource: true,
|
||||
include: ['path', 'properties']
|
||||
};
|
||||
|
||||
// see https://github.com/Alfresco/alfresco-js-api/issues/140
|
||||
let nodes: any = this.apiService.getInstance().nodes;
|
||||
return nodes.getNodeInfo(nodeId, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get thumbnail URL for the given document node.
|
||||
* @param node Node to get URL for.
|
||||
|
Reference in New Issue
Block a user