Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allows excluding entities from the nav sidebar / dashboard without disabling its routes #9897

Merged
merged 4 commits into from
Dec 11, 2024

Conversation

PatrikKozak
Copy link
Contributor

What?

Previously, the admin.group property on collection / global configs allowed for a custom group and the admin.hidden property would not only hide the entity from the nav sidebar / dashboard but also disable its routes.

Why?

There was not a simple way to hide an entity from the nav sidebar / dashboard but still keep the entities routes.

How?

Now - we've added the false type to the admin.group field to account for this.

Passing false to admin.group will hide the entity from the sidebar nav and dashboard but keep the routes available to navigate.

I.e

admin: {
  group: false,
},

@PatrikKozak PatrikKozak changed the title feat: allows excluding entities from the sidebar nav without disabling its routes feat: allows excluding entities from the nav sidebar / dashboard without disabling its routes Dec 11, 2024
@PatrikKozak PatrikKozak merged commit b1d92c2 into main Dec 11, 2024
56 checks passed
@PatrikKozak PatrikKozak deleted the feat/admin-group-false branch December 11, 2024 18:31
Copy link
Contributor

🚀 This is included in version v3.7.0

@HarleySalas
Copy link
Contributor

this is something that has occasionally annoyed me for the longest time.

Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants