[ADF-2580] - changing the inherit permission button by status (#3152)

This commit is contained in:
Vito
2018-04-08 16:20:14 +01:00
committed by Eugenio Romano
parent f78d5e2865
commit 8769c257f8
4 changed files with 16 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ export class InheritPermissionDirective {
onInheritPermissionClicked() {
this.nodeService.getNode(this.nodeId).subscribe((node: MinimalNodeEntryEntity) => {
const nodeBody = { permissions : {isInheritanceEnabled : !node.permissions.isInheritanceEnabled} };
this.nodeService.updateNode(this.nodeId, nodeBody).subscribe((nodeUpdated: MinimalNodeEntryEntity) => {
this.nodeService.updateNode(this.nodeId, nodeBody, {include: ['permissions'] }).subscribe((nodeUpdated: MinimalNodeEntryEntity) => {
this.updated.emit(nodeUpdated);
});
});