mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1544] extensions: toolbar separators and menus (#504)
* toolbar separators * remove the need for "target" for separators * simplify code * menu stub, reducing separators * toolbar action component * render menu items * menu items
This commit is contained in:
@@ -83,7 +83,8 @@ export abstract class PageComponent implements OnInit, OnDestroy {
|
||||
if (selection.isEmpty) {
|
||||
this.infoDrawerOpened = false;
|
||||
}
|
||||
this.actions = this.extensions.getSelectedContentActions(selection, this.node);
|
||||
const selectedNodes = selection ? selection.nodes : null;
|
||||
this.actions = this.extensions.getAllowedContentActions(selectedNodes, this.node);
|
||||
this.canUpdateFile = this.selection.file && this.content.canUpdateNode(selection.file);
|
||||
this.canUpdateNode = this.selection.count === 1 && this.content.canUpdateNode(selection.first);
|
||||
this.canDelete = !this.selection.isEmpty && this.content.canDeleteNodes(selection.nodes);
|
||||
|
Reference in New Issue
Block a user