Hide sidebar when empty

Created on 29 September 2022, about 2 years ago
Updated 14 April 2023, over 1 year ago

Problem/Motivation

We use hook_gin_content_form_routes() to add the sidebar on other forms.
It works great but when an user does not have the permission to see any of the fields in the sidebar, they get an empty sidebar, which is confusing.

Steps to reproduce

An easy way to reproduce is :

/**
 * Implements hook_gin_content_form_routes().
 */
function foo_gin_content_form_routes(): array {
  return [
    'entity.menu.add_form',
  ];
}

Then browse to /admin/structure/menu/add.

Proposed resolution

Would it be possible to hide the sidebar when it is empty?

✨ Feature request
Status

Active

Component

Code

Created by

🇫🇷France prudloff Lille

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

Merge Requests

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.71.5 2024