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

Menu Items: add a flexible way of controlling menu item visibility #72

Open
fsvreddit opened this issue May 30, 2024 · 0 comments
Open
Labels
enhancement New feature or request wontfix Known requests that will not be prioritized

Comments

@fsvreddit
Copy link
Contributor

Right now, the only options for menu item visibility is via forUserType and the options are relatively limiting.

I would like the ability to write code that returns a boolean value that would control whether a menu item was visible. This could allow conditional display based on subreddit settings, whether the item is a top level comment or not, or even based on something like user flair (e.g. if you had a "trusted users" concept who could do pseudo-moderation).

I am aware that this could have downsides - if the code in the function wasn't extremely fast it could degrade the user experience.

@pl00h pl00h added enhancement New feature or request wontfix Known requests that will not be prioritized labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix Known requests that will not be prioritized
Development

No branches or pull requests

2 participants