Skip to content
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

Update the value of the diffEnd when click Show More btn in the DiffFileTree (#24069) #24078

Merged
merged 5 commits into from Apr 12, 2023

Conversation

GiteaBot
Copy link
Contributor

Backport #24069 by @sillyguodong

In the component DiffFileTree,if don't update the value of the diffEnd in the callback of ajax request, click Show More btn will always return the same response, duplicate files are appended to the file list.

Before:

Screen.Recording.2023-04-12.at.14.18.33.mov

After:

Screen.Recording.2023-04-12.at.14.19.21.mov

…iffFileTree (go-gitea#24069)

In the component `DiffFileTree`,if don't update the value of the
`diffEnd` in the callback of ajax request, click `Show More` btn will
always return the same response, duplicate files are appended to the
file list.


Before:


https://user-images.githubusercontent.com/33891828/231371188-82d169af-10bb-47e2-8aca-83ced2597f2d.mov



After:


https://user-images.githubusercontent.com/33891828/231369805-39a5a4d0-662c-4f08-bc5a-7d31e8782453.mov

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
@GiteaBot GiteaBot added this to the 1.19.1 milestone Apr 12, 2023
@GiteaBot GiteaBot requested review from delvh and lunny April 12, 2023 14:05
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 12, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Apr 12, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 12, 2023
@lunny lunny enabled auto-merge (squash) April 12, 2023 14:18
@6543 6543 mentioned this pull request Apr 12, 2023
@lunny lunny merged commit 607801e into go-gitea:release/v1.19 Apr 12, 2023
2 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 12, 2023
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 31, 2023
@techknowlogick techknowlogick deleted the backport-24069-v1.19 branch September 9, 2023 05:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants