From 29133f3d04dc3eab9400f677e5765468eecce9ae Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Mon, 3 Apr 2023 23:11:05 +0900 Subject: [PATCH] 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. --- routers/web/repo/pull.go | 1 + 1 file changed, 1 insertion(+) 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() {