We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d789d36 commit 02eb4b1Copy full SHA for 02eb4b1
templates/repo/settings/protected_branch.tmpl
@@ -127,7 +127,7 @@
127
128
<div class="field">
129
<div class="ui checkbox">
130
- <input class="enable-statuscheck" name="enable_status_check" type="checkbox" data-target="#statuscheck_contexts_box" {{if .Branch.EnableStatusCheck}}checked{{end}}>
+ <input class="enable-statuscheck" name="enable_status_check" type="checkbox" data-target="#statuscheck_contexts_box" {{if eq (len .branch_status_check_contexts) 0}}disabled{{end}} {{if .Branch.EnableStatusCheck}}checked{{end}}>
131
<label>{{.i18n.Tr "repo.settings.protect_check_status_contexts"}}</label>
132
<p class="help">{{.i18n.Tr "repo.settings.protect_check_status_contexts_desc"}}</p>
133
</div>
0 commit comments