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

Refactor settings module visibility controls #49

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

bscholer
Copy link
Contributor

I've made changes to streamline the way we handle the visibility of certain settings in our settings module. After working on PR #46, I noticed we were repeating the same code for controlling visibility across multiple places. To clean this up, I introduced a new function, updateSettingVisibility(classSelector, visible), which consolidates the logic into a single, reusable method. This approach not only reduces duplication but also makes our code easier to maintain and understand.

@djmango
Copy link
Owner

djmango commented Feb 12, 2024

LGTM

@djmango djmango merged commit cc36ae5 into djmango:master Feb 12, 2024
1 check 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