Fix tag changes pagination not preserving added query param

Closes #9
This commit is contained in:
SeinopSys 2020-07-19 20:57:01 +02:00 committed by byte[]
parent 9a9ce118c5
commit 39ff35c089
5 changed files with 8 additions and 7 deletions

View file

@ -7,7 +7,7 @@ h1
.block
.block__header
span.block__header_title
span.block__header__title
| Display only:
= link "Removed", to: Routes.fingerprint_profile_tag_change_path(@conn, :index, @fingerprint, added: 0)

View file

@ -5,11 +5,12 @@ h1
= @image.id
- route = fn p -> Routes.image_tag_change_path(@conn, :index, @image, p) end
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn
- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params
.block
.block__header
span.block__header_title
span.block__header__title
| Display only:
= link "Removed", to: Routes.image_tag_change_path(@conn, :index, @image, added: 0)

View file

@ -7,7 +7,7 @@ h1
.block
.block__header
span.block__header_title
span.block__header__title
| Display only:
= link "Removed", to: Routes.ip_profile_tag_change_path(@conn, :index, to_string(@ip), added: 0)

View file

@ -8,7 +8,7 @@ h1
.block
.block__header
span.block__header_title
span.block__header__title
| Display only:
= link "Removed", to: Routes.profile_tag_change_path(@conn, :index, @user, added: 0)

View file

@ -8,7 +8,7 @@ h1
.block
.block__header
span.block__header_title
span.block__header__title
| Display only:
= link "Removed", to: Routes.tag_tag_change_path(@conn, :index, @tag, added: 0)