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

[Sponserblock] added only categories as option #977

Merged
merged 2 commits into from
Sep 2, 2023

Conversation

bruvv
Copy link
Contributor

@bruvv bruvv commented Sep 2, 2023

Hide the other stuff, is this the way to do it @alexbelgium ? I just wnat the css_categories to be visible by default

Hide the other stuff, is this the way to do it @alexbelgium ? I just wnat the css_categories to be visible by default
@alexbelgium
Copy link
Owner

Hi, actually as long as there is a value in options it will be visible. And you can't remove it otherwise it will revert to default. So the true solution is to remove all elements from the options and only keep them in the schema as long as the default is set somewhere

@bruvv
Copy link
Contributor Author

bruvv commented Sep 2, 2023

Thanks Alex, removed the extra stuff :) I did not create a new version since it is not needed now.

@alexbelgium
Copy link
Owner

Looks great thanks!

@alexbelgium alexbelgium merged commit a224139 into alexbelgium:master Sep 2, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants