Skip to content

Commit ac11570

Browse files
authored
Pagination should show correct current page (fixes ciur/papermerge#487)
1 parent e5239fd commit ac11570

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/components/pagination/index.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
<LinkTo
88
@route={{@route}}
99
{{on "click" (perform @onPageClick page.number @hint)}}
10+
@activeClass="dummy"
1011
class="page-link">
1112
{{page.number}}
1213
</LinkTo>
1314
{{else}}
1415
<LinkTo
1516
@route={{@route}}
1617
@query={{hash page=page.number}}
18+
@activeClass="dummy"
1719
class="page-link">
1820
{{page.number}}
1921
</LinkTo>

changelog.d/487.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pagination should show correct current page

0 commit comments

Comments
 (0)