Skip to content

Commit bcdd3c3

Browse files
yp05327GiteaBot
andauthored
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 <[email protected]>
1 parent bf999e4 commit bcdd3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/settings/webhook/new.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings webhook")}}
1+
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings new webhook")}}
22
<div class="repo-setting-content">
33
<h4 class="ui top attached header">
44
{{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}}

0 commit comments

Comments
 (0)