Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
DX Core 6.2.29
Description
Steps to reproduce
- Create /freeze-configuration light-module
- Add decoration for userMenu.yaml
- Add toggleFreeze with jcrCommandAction
- After reloading try to click new Freeze button while:
-
- inside the Pages app with selected node
- inside the Pages app w/o selected node
- all applications are closed (in admincentral root)
/freeze-configuration/decorations/admincentral/dialogs/userMenu.yaml
actions:
toggleFreeze:
label: Toggle Freeze
$type: jcrCommandAction
icon: icon-publish
command: toggleGlobalFreeze
catalog: freeze
asynchronous: true
Tried adding
availability: nodes: false root: true
or
availability: nodes: false root: true rules: JcrRootRuleDefinition: class: info.magnolia.ui.availability.rule.JcrRootRuleDefinition
First configuration works only when any page in app is selected
Second throws NPE (NullPointerException)
Third sometimes throws a.u.c.b.a.ActionbarPresenter: Action toggleFreeze defined in group publish not found
Expected results
Button should work w/o context of the apps
Actual results
The only way to fire this command from userMenu is to select node in application
Module version: magnolia-freeze 2.0
Checklists
Acceptance criteria