Page History
...
if (roles.empty || item.role in roles) && ((item is null && root) || (item.isProperty && properties) || (item.isNode && (nodeTypes.empty || item.nodeTypes in nodeTypes))
Proposal commentary
The term gets a bit confusing, restrictions.root sounds like it makes the action available for only root. But its really available for root AND by node types.
Actionbar appearance
The actionbar should only show one section at a time. The section to show depends on the selected node. Therefore we need to configure:
...
If more than one section applies the first one is used.
Configuration and naming
Proposal 1 - Restrictions (implemented)
...
Property | Meaning | Default value |
---|---|---|
restrictions.root | Restricts whether the section is shown for root, false means shown | true (not shown) |
restrictions.properties | Restricts whether the action is available for properties | true (not shown) |
restriction.nodeTypes | Restricts that the section is shown only for the node types in list | empty (shown) |
Proposal commentary
The term restrictions seems to make more sense here since we're only gonna pick one. It's more about excluding the one not to shown.
...