Skip to content

Commit b7c5e44

Browse files
committed
Remove the start_over partial. Render the component instead
Just render the component directly. See #3327 for deprecation in 8.x branch
1 parent 1cebc26 commit b7c5e44

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div id="appliedParams" class="clearfix constraints-container mb-2">
2-
<%= render 'start_over' %>
2+
<%= start_over %>
33
<%= link_back_to_catalog class: 'btn btn-outline-secondary' %>
44
</div>

app/components/blacklight/search_context/server_applied_params_component.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ class ServerAppliedParamsComponent < Blacklight::Component
99
def render?
1010
current_search_session
1111
end
12+
13+
def start_over
14+
render start_over_component.new
15+
end
16+
17+
def start_over_component
18+
Blacklight::StartOverButtonComponent
19+
end
1220
end
1321
end
1422
end

app/views/catalog/_start_over.html.erb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)