Skip to content

Commit

Permalink
Merge pull request #6515 from samvera/fix-my-works-more-facets
Browse files Browse the repository at this point in the history
Use the catalog's facet_limit partial
  • Loading branch information
abelemlih authored Dec 8, 2023
2 parents 735fde7 + 4ca0a4e commit 0113362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/hyrax/my/facet.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= render partial: 'facet_index_navigation' if @facet.index_range && @display_facet.index? %>

<div class="facet-extended-list">
<%= render_facet_limit(@display_facet, layout: false) %>
<%= render_facet_limit(@display_facet, layout: false, partial: 'catalog/facet_limit') %>
</div>

<%# Removed component footer and placed the facet pagination partial within a `container` div %>
Expand Down
2 changes: 1 addition & 1 deletion spec/views/hyrax/my/facet.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

it "renders the facet limit" do
expect(view).to receive(:render_facet_limit).with(display_facet, layout: false)
expect(view).to receive(:render_facet_limit).with(display_facet, layout: false, partial: 'catalog/facet_limit')
render
end
end

0 comments on commit 0113362

Please sign in to comment.