Skip to content

Conversation

@kirkkwang
Copy link

This commit will make it easier to override the Arclight::BookmarkComponent where all you would have to do is add it to the CatalogController. Other components should reference that and have a fallback to the original Arclight::BookmarkComponent

This commit will make it easier to override the
`Arclight::BookmarkComponent` where all you would have to do is add it
to the `CatalogController`.  Other components should reference that and
have a fallback to the original `Arclight::BookmarkComponent`
<% end %>
<%= render 'arclight/requests', document: document %>
<%= render Arclight::BookmarkComponent.new document: document, action: bookmark_config %>
<%= render (blacklight_config.index.document_actions.arclight_bookmark_control.component || Arclight::BookmarkComponent).new document: document, action: bookmark_config %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<%= render (blacklight_config.index.document_actions.arclight_bookmark_control.component || Arclight::BookmarkComponent).new document: document, action: bookmark_config %>
<%= render (presenter&.view_config&.document_actions&.arclight_bookmark_control.component || Arclight::BookmarkComponent).new document: document, action: bookmark_config %>

I think the presenter should have the appropriate configuration context, maybe?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @cbeer, I don't seem to be finding what I'm looking for using the presenter view_config

image

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