diff options
author | yp05327 <576951401@qq.com> | 2023-04-03 23:11:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 22:11:05 +0800 |
commit | 29133f3d04dc3eab9400f677e5765468eecce9ae (patch) | |
tree | 24ca2db2d619fafb5939ae561ffa98133192366d | |
parent | 5cc0801de90d16b4d528e62de11c9b525be5d122 (diff) | |
download | gitea-29133f3d04dc3eab9400f677e5765468eecce9ae.tar.gz gitea-29133f3d04dc3eab9400f677e5765468eecce9ae.zip |
Fix submit button won't refresh in New Repository Fork page (#22994)
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.
-rw-r--r-- | routers/web/repo/pull.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index c37d52640f..30004cefb7 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -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() { |