Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat: hide pagination widget when not needed#4957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
presleyp merged 8 commits intomainfromhide-pagination/presley
Nov 8, 2022

Conversation

@presleyp
Copy link
Contributor

Closes#4892 and#4623

We need the pagination widget to show when

  • there are multiple pages of records
  • the user landed on a page beyond the records and needs the ability to navigate back

We don't need the pagination widget when

  • there is only one page of records
  • the number of records hasn't loaded yet (if it shows and then the count is <=1 page, it will disappear again)

This should satisfy all of those! It assumes that we will always includecount in our pagination - we used to support count-less pagination with the widget showing previous and next buttons but no page number buttons, but now we rely on the count being available and hide the widget when it's not (because that should mean it's loading, not that it's not going to be available).

jsjoeio reacted with thumbs up emoji
@presleyppresleyp requested a review froma team as acode ownerNovember 8, 2022 16:08
@presleyppresleyp requested review fromjsjoeio and removed request fora teamNovember 8, 2022 16:08
Copy link
Member

@kylecarbskylecarbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Neato

@presleyppresleyp merged commitfa844d0 intomainNov 8, 2022
@presleyppresleyp deleted the hide-pagination/presley branchNovember 8, 2022 18:29
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 8, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@kylecarbskylecarbskylecarbs approved these changes

+1 more reviewer

@jsjoeiojsjoeiojsjoeio approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

investigate: Is it normal to show pagination where there is nothing to paginate?

4 participants

@presleyp@jsjoeio@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp