mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1272] Favorites - metadata permission (#288)
* allowableOperations field call option * update unit tests
This commit is contained in:
committed by
Denys Vuika
parent
8f3ccc7b38
commit
ad6ec49777
@@ -98,7 +98,7 @@ describe('NodeInfoDirective', () => {
|
||||
|
||||
document.dispatchEvent(new CustomEvent('click'));
|
||||
|
||||
expect(nodeService.getNodeInfo).toHaveBeenCalledWith('id');
|
||||
expect(nodeService.getNodeInfo).toHaveBeenCalledWith('id', { include: [ 'allowableOperations' ] });
|
||||
});
|
||||
|
||||
|
||||
@@ -116,6 +116,6 @@ describe('NodeInfoDirective', () => {
|
||||
fixture.detectChanges();
|
||||
tick();
|
||||
|
||||
expect(nodeService.getNodeInfo).toHaveBeenCalledWith('id3');
|
||||
expect(nodeService.getNodeInfo).toHaveBeenCalledWith('id3', { include: [ 'allowableOperations' ] });
|
||||
}));
|
||||
});
|
||||
|
@@ -65,7 +65,9 @@ export class NodeInfoDirective implements OnInit {
|
||||
this.loading = true;
|
||||
|
||||
this.apiService.getInstance().nodes
|
||||
.getNodeInfo((<any>node.entry).nodeId || node.entry.id)
|
||||
.getNodeInfo((<any>node.entry).nodeId || node.entry.id, {
|
||||
include: ['allowableOperations']
|
||||
})
|
||||
.then((data: MinimalNodeEntryEntity) => {
|
||||
this.node = data;
|
||||
this.changed.emit(data);
|
||||
|
Reference in New Issue
Block a user