-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fixed incorrect page navigation with up and down arrow on last item of dashboard repos #34570
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Is the screenshot the previous one or updated one? |
yes its after. before cant see second page but last page if not release the key |
I couldn't reproduce it. The old logic does work for me. |
This comment was marked as resolved.
This comment was marked as resolved.
@wxiaoguang can you please review again, i fixed the up arrow key also. the problem for up arrow key is, this line works before the fetch repos. repos.count is 0 and it sets the index to 0 again and request for previous page again, so never shows pages between first and last pages gitea/web_src/js/components/DashboardRepoList.vue Lines 336 to 338 in 6121552
|
Actually it will be quite complex to make the logic completely right here. For example: this PR fixes some problems, but I think it introduces new problems:
|
@wxiaoguang you are right okey i will look for better solution |
@wxiaoguang looked again but it looks like because in loading state we do not show buttons or repos, user can change tab or input search text which is |
…f dashboard repos (go-gitea#34570) Previously, pressing the down arrow key on the last item of a list would incorrectly load the latest page when not release key. This commit corrects the logic to ensure that the next page is loaded as intended.
…f dashboard repos (#34570) (#34596) Backport #34570 by metiftikci Co-authored-by: metiftikci <[email protected]>
* giteaofficial/main: Fix issue label delete incorrect labels webhook payload (go-gitea#34575) fixed incorrect page navigation with up and down arrow on last item of dashboard repos (go-gitea#34570) Remove unnecessary duplicate code (go-gitea#34552) Make pull request and issue history more compact (go-gitea#34588)
Previously, pressing the down arrow key on the last item of a list would incorrectly load the latest page when not release key. This commit corrects the logic to ensure that the next page is loaded as intended.
After the fix: