Skip to content

Commit 705c268

Browse files
TimeTravelerFromNowrosa
authored andcommitted
Add to the params in buttons
Continue submitting params in the Discard and Retry buttons so that the next request keeps filter
1 parent 60f6f9d commit 705c268

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="buttons is-right">
2-
<%= button_to "Discard", application_job_discard_path(@application, job.job_id), class: "button is-danger is-light mr-0",
2+
<%= button_to "Discard", application_job_discard_path(@application, job.job_id, params: params.permit!), class: "button is-danger is-light mr-0",
33
form: { data: { turbo_confirm: "This will delete the job and can't be undone. Are you sure?" } } %>
4-
<%= button_to "Retry", application_job_retry_path(@application, job.job_id), class: "button is-warning is-light mr-0" %>
4+
<%= button_to "Retry", application_job_retry_path(@application, job.job_id, params: params.permit!), class: "button is-warning is-light mr-0" %>
55
</div>

0 commit comments

Comments
 (0)