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

Fix submit button won't refresh in New Repository Fork page #22994

Merged

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Feb 20, 2023

Fork a repo, and input an invalid repo name, you will get an error.
Then rename the repo name to a valid one, the submit button is still disabled.

In other pages, for example, in create repo page, the submit button will not be disabled.
So I removed the codes to disable the submit button.

@wxiaoguang
Copy link
Contributor

Instead of changing the "submit button" logic, I guess it could just add a ctx.Data["CanForkRepo"] = true in the ForkPost function?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 16, 2023
@yp05327
Copy link
Contributor Author

yp05327 commented Mar 17, 2023

emmm, as it is a fix, maybe I need to hold the old design.

But I don't think it is necessary to disable the commit buttton here.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 17, 2023
@lunny lunny added type/bug and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 17, 2023
@lunny lunny added this to the 1.20.0 milestone Mar 17, 2023
@GiteaBot GiteaBot added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Apr 3, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 3, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #22994 (ba9bb15) into main (f521e88) will increase coverage by 0.27%.
The diff coverage is 0.00%.

❗ Current head ba9bb15 differs from pull request most recent head 146aa02. Consider uploading reports for the commit 146aa02 to get more accurate results

@@            Coverage Diff             @@
##             main   #22994      +/-   ##
==========================================
+ Coverage   47.14%   47.41%   +0.27%     
==========================================
  Files        1149     1139      -10     
  Lines      151446   150706     -740     
==========================================
+ Hits        71397    71458      +61     
+ Misses      71611    70781     -830     
- Partials     8438     8467      +29     
Impacted Files Coverage Δ
routers/web/repo/pull.go 30.62% <0.00%> (+0.03%) ⬆️

... and 183 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lunny lunny merged commit 29133f3 into go-gitea:main Apr 3, 2023
@lunny lunny removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Apr 3, 2023
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 4, 2023
* upstream/main:
  Use User.ID instead of User.Name in ActivityPub API for Person IRI (go-gitea#23823)
  Remove fomantic ".link" selector and styles (go-gitea#23888)
  [skip ci] Updated translations via Crowdin
  Fix `cases.Title` crash for concurrency (go-gitea#23885)
  Disable editing tags (go-gitea#23883)
  Fix user profile description rendering (go-gitea#23882)
  Introduce GiteaLocaleNumber custom element to handle number localization on pages. (go-gitea#23861)
  Convert .Source.SkipVerify to $cfg.SkipVerify (go-gitea#23839)
  Fix review box viewport overflow issue (go-gitea#23800)
  Fix owner team access mode value in team_unit table (go-gitea#23675)
  Fix submit button won't refresh in New Repository Fork page (go-gitea#22994)
  Introduce GitHub markdown editor, keep EasyMDE as fallback (go-gitea#23876)
  Improve LoadUnitConfig to handle invalid or duplicate units (go-gitea#23736)
  Append `(comment)` when a link points at a comment rather than the whole issue (go-gitea#23734)
  Rename actions unit to `repo.actions` and add docs for it (go-gitea#23733)
  Try to catch more broken translations (go-gitea#23867)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Aug 1, 2023
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.

6 participants