Commit 493b225b authored by Luke Bennett's avatar Luke Bennett

Disable direction select if 1 option

parent 94dfd15e
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
.form-group .form-group
= label_tag :mirror_direction, _('Mirror direction'), class: 'label-light' = 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 = 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