Commit f2229c1a authored by Luke Bennett's avatar Luke Bennett

Disable direction select if 1 option

parent daa342cf
......@@ -31,7 +31,7 @@
.form-group
= label_tag :mirror_direction, _('Mirror direction'), class: 'label-light'
= select_tag :mirror_direction, options_for_select(options), class: 'form-control js-mirror-direction'
= select_tag :mirror_direction, options_for_select(options), class: 'form-control js-mirror-direction', disabled: "#{'disabled' if options.count == 1}"
= render 'projects/mirrors/mirror_repos_form', can_push: can_push, can_pull: can_pull, f: f
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment