From bcdd3c30afb69eac6ba5edd7eeeb81ec3d3ba74f Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Wed, 3 May 2023 04:58:18 +0900 Subject: [PATCH] Fix test delivery button in repo webhook settings page (#24478) Caused by https://github.com/go-gitea/gitea/pull/24246/files#diff-2bfe41d93dbb409583a4f945902e46bb513f60f1c9301649c1689200c4f1466eR1 Class `new` was removed in #24246, but in function `initCompWebHookEditor`, it will check `.new.webhook`. So in repo webhook settings page, `initCompWebHookEditor` will init nothing, and no response after click the test delivery button. https://github.com/go-gitea/gitea/blob/da65b7ad47e8d0d82f47cb24ee9ac2a0ec50dc25/web_src/js/features/comp/WebHookEditor.js#L6-L9 Co-authored-by: Giteabot --- templates/repo/settings/webhook/new.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/webhook/new.tmpl b/templates/repo/settings/webhook/new.tmpl index f4caa28989..73d6726a57 100644 --- a/templates/repo/settings/webhook/new.tmpl +++ b/templates/repo/settings/webhook/new.tmpl @@ -1,4 +1,4 @@ -{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings webhook")}} +{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings new webhook")}}

{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}}