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 Sep 23, 2024
1 parent d566efe commit b3a08e5
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">
<%= 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 @@ -8,6 +8,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 b3a08e5

Please sign in to comment.