Skip to content

Commit 29133f3

Browse files
authoredApr 3, 2023
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.
1 parent 5cc0801 commit 29133f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎routers/web/repo/pull.go

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ func Fork(ctx *context.Context) {
203203
func ForkPost(ctx *context.Context) {
204204
form := web.GetForm(ctx).(*forms.CreateRepoForm)
205205
ctx.Data["Title"] = ctx.Tr("new_fork")
206+
ctx.Data["CanForkRepo"] = true
206207

207208
ctxUser := checkContextUser(ctx, form.UID)
208209
if ctx.Written() {

0 commit comments

Comments
 (0)