- 🇩🇪Germany broon Potsdam
This issue was introduced by committing the patch in #3257504: Empty toolbar tray displays a stray orientation toggle → .
If you remove the
.has('.toolbar-menu')
part from Core again, you'll have the buttons back (but also a stray button if there is no menu at all). - 🇩🇪Germany broon Potsdam
Also, this happens for users who may see the toolbar but are not admins as they will see the "Manage" tab although it has no items. Thus, the menu is not really existant.
See #2135445: Toolbar displays Manage tab even if the user is not permitted to see it →
- 🇩🇪Germany broon Potsdam
Here's a patch that reverts the introduction of the "has-menu" check. This is not a final solution but works fine in conjunction with the patch in https://www.drupal.org/project/drupal/issues/2135445#comment-13003616 → to show the admin toolbar for users without admin permissions.
- Status changed to Needs review
over 1 year ago 12:17pm 25 April 2023 - last update
over 1 year ago 28,488 pass, 6 fail The last submitted patch, 8: drupal-toggle_icon-3305152-8-D10.patch, failed testing. View results →
- Status changed to Needs work
over 1 year ago 11:28am 28 April 2023 - last update
over 1 year ago Custom Commands Failed - @bnjmnm opened merge request.
- Status changed to Needs review
over 1 year ago 2:21pm 28 April 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
Ignore the
escape-admin-path
branch, that was accidental.The
3305152-toggle-icon-for
merge request, however is ready for review.This fixes the underlying issue without undoing the benefits of #3257504: Empty toolbar tray displays a stray orientation toggle → . Now, if the manage tab has an empty tray, the tab itself is not visible either.
Note that checking for
.has(.toolbar-menu)
was not an ideal approach as there were scenarios where this JavaScript is running before all the relevant.toolbar-menu
classes are present. - last update
over 1 year ago 29,361 pass, 3 fail - Status changed to Needs work
over 1 year ago 8:48pm 29 April 2023 - last update
over 1 year ago 29,366 pass, 1 fail - Status changed to Needs review
over 1 year ago 12:05pm 1 May 2023 - 🇺🇸United States bnjmnm Ann Arbor, MI
Test updated to account for empty trays not being displayed anymore.
- Status changed to RTBC
over 1 year ago 3:28pm 1 May 2023 - Status changed to Needs review
over 1 year ago 3:37pm 1 May 2023 - Status changed to RTBC
over 1 year ago 9:13pm 1 May 2023 - 🇺🇸United States smustgrave
Verified this issue on a fresh install of 10.1
Verified MR solved the issue. - last update
over 1 year ago 29,373 pass, 1 fail - last update
over 1 year ago 29,377 pass, 1 fail - last update
over 1 year ago 29,378 pass, 1 fail - First commit to issue fork.
- last update
over 1 year ago 29,379 pass, 1 fail - last update
over 1 year ago 29,379 pass, 1 fail - last update
over 1 year ago 29,387 pass, 1 fail - last update
over 1 year ago 29,387 pass, 1 fail - last update
over 1 year ago 29,385 pass, 3 fail - 🇷🇺Russia Chi
This might not be relevant, but when looking at screenshot #17 don't you think that "Edit shortcuts" link is not in place?
- last update
over 1 year ago Custom Commands Failed - 🇺🇸United States Tbower89
Tried to apply the patch from Comment #7, but the issue still existed. Noticing that it was applying only on the first element, added a loop so that it would apply to all the trays on the toolbar to fix the issue. This was done for Drupal Core 9.5.8.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - Status changed to Needs review
over 1 year ago 12:03pm 25 May 2023 21:01 18:59 RunningThe last submitted patch, 22: 3305152-22.patch, failed testing. View results →
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 29,396 pass, 1 fail - @bnjmnm opened merge request.
34:28 32:19 Running- Status changed to Needs work
over 1 year ago 2:49pm 28 June 2023 - 🇺🇸United States agentrickard Georgia (US)
Note on review of #20, if your Shortcut toolbar has no items in it, you will get a fatal JS error:
$orientationToggleButton[0] is not defined
That logic needs an
if !== undefined
wrapper. - 🇦🇺Australia nterbogt
This patch caused significant issues for us for non admin users. I'm yet to look into what is different in the HTML structure between admin and non admin users that might be affecting it.