Skip to content

Conversation

@ZANX3Y
Copy link

@ZANX3Y ZANX3Y commented Jan 28, 2026

Description

This PR adds a switchableTenants() configuration method to the Panel builder, allowing developers to disable the tenant switcher, while keeping the tenant menu.

Visual changes

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@People-Sea
Copy link
Member

Thanks for the contribution!

Just curious - what's the use case for this? The existing tenantMenu(fn () => ...) can already conditionally hide the menu.

@danharrin danharrin added enhancement New feature or request pending review labels Jan 28, 2026
@danharrin danharrin added this to the v4 milestone Jan 28, 2026
@danharrin
Copy link
Member

Please rebase this commit on 4.x and change the target branch

@ZANX3Y ZANX3Y force-pushed the feat/tenant-switching-toggle branch from 50ebc3a to 0f939bb Compare January 28, 2026 13:21
@ZANX3Y ZANX3Y changed the base branch from 5.x to 4.x January 28, 2026 13:21
@ZANX3Y
Copy link
Author

ZANX3Y commented Jan 28, 2026

Just curious - what's the use case for this? The existing tenantMenu(fn () => ...) can already conditionally hide the menu.

The tenantMenu() method affects the entire menu component.
This change provides finer control by letting you disable the tenant switching list, while keeping the menu functional for other actions (Profile, Billing, custom actions).
This is useful when there are other ways to access different tenants.

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Roadmap Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants