Problem/Motivation
On node edit forms with the Gin Admin theme the "Unlock" button is hidden behind a secondary actions dropdown button with the title "More actions". This became an issue after Gin admin theme introduced this dropdown menu, hiding all buttons except from the most important one ("Save" in case of a node).
I think "Unlock" button is too important to be hidden, as it should be used every time when user decides to not save the node. Having it hidden may cause increase number of content locked without valid reason.
Steps to reproduce
- Install and use as default admin theme the Gin Admin theme,
- Install "Content locking" module and enable this for one of the node types,
- Create or edit a node of type selected in previous point.
- Check that "Unlock" button is hidden behind a secondary actions dropdown button.
Proposed resolution
As it looks like Gin maintainers are not planning to change this feature (https://www.drupal.org/project/gin/issues/3466692), I think "Content locking" should takie similair approach like other modules, making their buttons to jump out of this dropdown menu. For example, like this: https://www.drupal.org/project/save_edit/issues/3461404
Issue fork content_lock-3473067
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
astonvictor commentedthanks for the report
The simplest way is to add
'#gin_action_item' => TRUE,to the unlock button. It won't break anything and won't require any update hooks to enable/disable smth.FYI
#gin_action_itemwas introduced in the 8.x-3.0-rc11 tag of the Gin theme (#3356717: Move Action buttons to sticky header).Comment #6
astonvictor commented