Local Tasks menu is shown even when the tray is empty

Created on 25 November 2022, over 1 year ago
Updated 28 April 2023, about 1 year ago

Problem/Motivation

When the option to "Enable/Disable local tasks display" is checked, the "Local Tasks" tray is shown, even on pages that don't have local tasks.

Steps to reproduce

  • Check "Enable/Disable local tasks display" on /admin/config/user-interface/admin-toolbar-tools and submit the form
  • Notice how "Local Tasks" is shown but opens to an empty list on pages that don't have local tasks like the settings form you just submitted on /admin/config/user-interface/admin-toolbar-tools

Proposed resolution

Don't show the tray when it's empty.

Remaining tasks

Figure out a way to hide the tray when it's empty or don't render it to begin with.

User interface changes

Tray should only show when it has items in it.

API changes

n/a

Data model changes

n/a

🐛 Bug report
Status

Closed: outdated

Version

3.2

Component

Code

Created by

🇧🇪Belgium seutje Antwerp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024