diff options
author | yp05327 <576951401@qq.com> | 2023-05-03 04:58:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 21:58:18 +0200 |
commit | bcdd3c30afb69eac6ba5edd7eeeb81ec3d3ba74f (patch) | |
tree | a82696093bc5f1b69d6b68cfc9a9dc4ba67b7c5e /templates | |
parent | bf999e406994ab34420fb62e0de7948c8c2116c1 (diff) | |
download | gitea-bcdd3c30afb69eac6ba5edd7eeeb81ec3d3ba74f.tar.gz gitea-bcdd3c30afb69eac6ba5edd7eeeb81ec3d3ba74f.zip |
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 <teabot@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/settings/webhook/new.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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")}} <div class="repo-setting-content"> <h4 class="ui top attached header"> {{if .PageIsSettingsHooksNew}}{{.locale.Tr "repo.settings.add_webhook"}}{{else}}{{.locale.Tr "repo.settings.update_webhook"}}{{end}} |