Problem/Motivation
In version 1.x the user could decide if the default local tasks should be shown or hidden. The default mode was to hide the default local tasks.
Steps to reproduce
- Install version 1.x and dont see the default local tasks.
- Install version 2.x and see the default local tasks.
Proposed resolution
- Add an option for hide / show default local tasks incl. update-hook.
- Hide corresponding block as visually hidden by JS.
Remaining tasks
Add documentation and tests.
User interface changes
- New option in admin form
- default local tasks hidden
Issue fork sticky_local_tasks-3536004
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 #3
jan kellermann commentedReady incl. phpunit tests.
Please review and feedback.
Comment #4
gaurav.kapoor commentedComment #5
gaurav.kapoor commentedI noticed that the new feature to hide the local tasks works perfectly fine when using the default 'Olivero' theme, but it didn't have any impact when using a custom theme. So in case the theme removes the class 'block-local-tasks-block' the default local tasks tab isnt't removed. IMO a note for the admin regarding this, along with the settings or in the README, would be helpful.
Comment #6
gaurav.kapoor commentedComment #7
jan kellermann commentedAdded text to admin form and README. Please have a look and give feedback or fix. Thank you in advance.
Comment #8
gaurav.kapoor commentedLooks good!! Moving to RTBC.
Comment #10
jan kellermann commentedThank you all for your work. This issue is merged.