diff --git a/src/app/common/directives/node-info.directive.spec.ts b/src/app/common/directives/node-info.directive.spec.ts index f6c7d0698..c063e2e80 100644 --- a/src/app/common/directives/node-info.directive.spec.ts +++ b/src/app/common/directives/node-info.directive.spec.ts @@ -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' ] }); })); }); diff --git a/src/app/common/directives/node-info.directive.ts b/src/app/common/directives/node-info.directive.ts index b05b13dd5..754b1a7df 100644 --- a/src/app/common/directives/node-info.directive.ts +++ b/src/app/common/directives/node-info.directive.ts @@ -65,7 +65,9 @@ export class NodeInfoDirective implements OnInit { this.loading = true; this.apiService.getInstance().nodes - .getNodeInfo((node.entry).nodeId || node.entry.id) + .getNodeInfo((node.entry).nodeId || node.entry.id, { + include: ['allowableOperations'] + }) .then((data: MinimalNodeEntryEntity) => { this.node = data; this.changed.emit(data);