Change webhook-type in create-view (#29114)

It's now possible to change webhook-type in create-view.

before:

![image](9ee1b9fb-843b-4f28-b8d6-6361e5d184f1)

after:

![image](9dbf058f-5912-43af-9acd-487271212f2d)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit 374e886f5113a996e1e927a60d1775e77262c364)

Conflicts:
	templates/repo/settings/webhook/base_list.tmpl
	templates/shared/webhook/icon.tmpl
This commit is contained in:
Tim-Nicas Oelschläger 2024-02-15 14:59:48 +01:00 committed by Earl Warren
parent c2d4c2fca7
commit 7263b3effe
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
6 changed files with 71 additions and 53 deletions

View file

@ -151,6 +151,7 @@ func WebhooksNew(ctx *context.Context) {
}
}
ctx.Data["BaseLink"] = orCtx.LinkNew
ctx.Data["BaseLinkNew"] = orCtx.LinkNew
ctx.HTML(http.StatusOK, orCtx.NewTemplate)
}