Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/components/arclight/document_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%= document.normalized_title %>
<% 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

<%= toggle_sidebar %>
<%= online_filter %>
</div>
Expand Down