mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
include definition field (#1582)
This commit is contained in:
parent
ce081aaad2
commit
a42b853814
@ -69,7 +69,7 @@ export class ContentApiService {
|
|||||||
*/
|
*/
|
||||||
getNode(nodeId: string, options: any = {}): Observable<MinimalNodeEntity> {
|
getNode(nodeId: string, options: any = {}): Observable<MinimalNodeEntity> {
|
||||||
const defaults = {
|
const defaults = {
|
||||||
include: ['path', 'properties', 'allowableOperations', 'permissions']
|
include: ['path', 'properties', 'allowableOperations', 'permissions', 'definition']
|
||||||
};
|
};
|
||||||
const queryOptions = Object.assign(defaults, options);
|
const queryOptions = Object.assign(defaults, options);
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ export class ContentApiService {
|
|||||||
|
|
||||||
getNodeInfo(nodeId: string, options?: any): Observable<Node> {
|
getNodeInfo(nodeId: string, options?: any): Observable<Node> {
|
||||||
const defaults = {
|
const defaults = {
|
||||||
include: ['isFavorite', 'allowableOperations', 'path']
|
include: ['isFavorite', 'allowableOperations', 'path', 'definition']
|
||||||
};
|
};
|
||||||
const queryOptions = Object.assign(defaults, options || {});
|
const queryOptions = Object.assign(defaults, options || {});
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ export class DocumentListDirective implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.documentList.stickyHeader = true;
|
this.documentList.stickyHeader = true;
|
||||||
this.documentList.includeFields = ['isFavorite', 'aspectNames'];
|
this.documentList.includeFields = ['isFavorite', 'aspectNames', 'definition'];
|
||||||
this.isLibrary =
|
this.isLibrary =
|
||||||
this.documentList.currentFolderId === '-mysites-' ||
|
this.documentList.currentFolderId === '-mysites-' ||
|
||||||
// workaround for custom node list
|
// workaround for custom node list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user