Skip to content

Commit

Permalink
Remove the start_over partial. Render the component instead
Browse files Browse the repository at this point in the history
Just render the component directly. See #3327 for deprecation in 8.x branch
  • Loading branch information
jcoyne committed Oct 24, 2024
1 parent 1cebc26 commit b7c5e44
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="appliedParams" class="clearfix constraints-container mb-2">
<%= render 'start_over' %>
<%= start_over %>
<%= link_back_to_catalog class: 'btn btn-outline-secondary' %>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ class ServerAppliedParamsComponent < Blacklight::Component
def render?
current_search_session
end

def start_over
render start_over_component.new
end

def start_over_component
Blacklight::StartOverButtonComponent
end
end
end
end
1 change: 0 additions & 1 deletion app/views/catalog/_start_over.html.erb

This file was deleted.

0 comments on commit b7c5e44

Please sign in to comment.