Prepopulate default dupe report states selection in pagination

This commit is contained in:
Nebbie Zebbie 2020-04-07 02:57:34 +00:00
parent d09d77c0cd
commit d56c5f2caa

View file

@ -1,7 +1,7 @@
h1 Duplicate Reports
- route = fn p -> Routes.duplicate_report_path(@conn, :index, p) end
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @duplicate_reports, route: route, conn: @conn, params: [states: @conn.params["states"]]
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @duplicate_reports, route: route, conn: @conn, params: [states: @conn.params["states"] || ["open", "claimed"]]
.block
.block__header