0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-16 14:47:48 +02:00

rename UpdateGlobalRepoFrom -> UpdateGlobalRepoForm

This commit is contained in:
DmitryFrolovTri 2026-01-27 18:49:52 +00:00
parent 10edee88c3
commit a779d6412d
No known key found for this signature in database
GPG Key ID: 0FBA4D49377CDDC3
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ func Repos(ctx *context.Context) {
}
func UpdateRepoPost(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.UpdateGlobalRepoFrom)
form := web.GetForm(ctx).(*forms.UpdateGlobalRepoForm)
ctx.Data["Title"] = ctx.Tr("admin.repositories")
ctx.Data["PageIsAdminRepositories"] = true

View File

@ -764,7 +764,7 @@ func registerWebRoutes(m *web.Router) {
m.Get("", admin.Repos)
m.Combo("/unadopted").Get(admin.UnadoptedRepos).Post(admin.AdoptOrDeleteRepository)
m.Post("/delete", admin.DeleteRepo)
m.Post("", web.Bind(forms.UpdateGlobalRepoFrom{}), admin.UpdateRepoPost)
m.Post("", web.Bind(forms.UpdateGlobalRepoForm{}), admin.UpdateRepoPost)
})
m.Group("/packages", func() {

View File

@ -45,7 +45,7 @@ type CreateRepoForm struct {
ObjectFormatName string
}
type UpdateGlobalRepoFrom struct {
type UpdateGlobalRepoForm struct {
GitSizeMax string `form:"GitSizeMax"`
LFSSizeMax string `form:"LFSSizeMax"`
}