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

Preventing exhibit navb deprecation messages when not needed #3202

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

hudajkhan
Copy link
Contributor

Closes #3200 .

What this PR does:
Updates the code to only throw a deprecation warning if the exhibit navbar component is not set in the configuration.

@jcoyne
Copy link
Member

jcoyne commented Oct 17, 2024

Do we also want to avoid calling the exhibit_navbar partial if the component is defined?

@hudajkhan
Copy link
Contributor Author

hudajkhan commented Oct 17, 2024

@jcoyne not sure about that just yet, given how the partial is called from the masthead file: https://github.com/projectblacklight/spotlight/blob/main/app/views/shared/_masthead.html.erb#L11 . I think we would have to rewrite this part as components as well first.

@hudajkhan hudajkhan merged commit a51fcd5 into main Oct 17, 2024
6 checks passed
@hudajkhan hudajkhan deleted the fixDeprecation branch October 17, 2024 19:04
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.

Bug: Deprecation warning being thrown even when exhibit navbar component is configured
2 participants