Disable direction select if 1 option
This commit is contained in:
parent
94dfd15e47
commit
493b225b97
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue