Skip to content

Commit

Permalink
Fix submit button won't refresh in New Repository Fork page (#22994)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yp05327 authored Apr 3, 2023
1 parent 5cc0801 commit 29133f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/web/repo/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func Fork(ctx *context.Context) {
func ForkPost(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.CreateRepoForm)
ctx.Data["Title"] = ctx.Tr("new_fork")
ctx.Data["CanForkRepo"] = true

ctxUser := checkContextUser(ctx, form.UID)
if ctx.Written() {
Expand Down

0 comments on commit 29133f3

Please sign in to comment.