mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2601] added permission check to info editing button (#3177)
* [ADF-2601] added permission check to info editing button * [ADF-2601] added test for node permission check on the content metadata card * [ADF-2601] used enum instead of string for test
This commit is contained in:
@@ -374,7 +374,7 @@ export class ViewerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
toggleSidebar() {
|
||||
this.showSidebar = !this.showSidebar;
|
||||
if (this.showSidebar && this.fileNodeId) {
|
||||
this.apiService.getInstance().nodes.getNodeInfo(this.fileNodeId)
|
||||
this.apiService.getInstance().nodes.getNodeInfo(this.fileNodeId, {include: ['allowableOperations']})
|
||||
.then((data: MinimalNodeEntryEntity) => {
|
||||
this.sidebarTemplateContext.node = data;
|
||||
});
|
||||
|
Reference in New Issue
Block a user