1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-02 08:14:25 +00:00
gitea/templates/repo/settings
Chongyi Zheng c333b4d499
Fix issue that sync_on_commit is not set (#21309)
<!--

Please check the following:

1. Make sure you are targeting the `main` branch, pull requests on
release branches are only allowed for bug fixes.
2. Read contributing guidelines:
https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
3. Describe what your pull request does and which issue you're targeting
(if any)

-->  
Fixes #21308.

With the original frontend template
`templates/repo/settings/options.tmpl`, the field
`push_mirror_sync_on_commit` is always empty even when checkbox is
checked. Removing `value` from the input tag seems to solve the issue,
and will set `push_mirror_sync_on_commit: on` when the checkbox is
checked.

(I'm not familiar with the frontend logics Gitea is using, so I don't
really understand the cause of it)
2022-10-01 16:07:05 +03:00
..
webhook Webhook for Wiki changes (#20219) 2022-09-04 20:54:23 +01:00
branches.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
collaboration.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
deploy_keys.tmpl Replace fomantic popup module with tippy.js (#20428) 2022-08-09 14:37:34 +02:00
githook_edit.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
githooks.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
lfs_file_find.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
lfs_file.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
lfs_locks.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
lfs_pointers.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
lfs.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
nav.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
navbar.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
options.tmpl Fix issue that sync_on_commit is not set (#21309) 2022-10-01 16:07:05 +03:00
protected_branch.tmpl Refactor i18n to locale (#20153) 2022-06-27 15:58:46 -05:00
tags.tmpl Remove fomantic image module (#21145) 2022-09-12 17:08:46 +08:00