Commit 5f1dfa9a authored by Luke Bennett's avatar Luke Bennett

Fix direction select disabled

parent b2363b94
......@@ -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', disabled: "#{'disabled' if options.count == 1}"
= select_tag :mirror_direction, options_for_select(options), class: 'form-control js-mirror-direction', disabled: options.count == 1
= render 'projects/mirrors/mirror_repos_form', can_push: can_push, can_pull: can_pull, f: f
......
......@@ -7,7 +7,7 @@
.form-group
= label_tag :auth_method, _('Authentication method'), class: 'label-bold'
= select_tag :auth_method, options_for_select([[_('Password'), 'password']], 'password'), { class: "form-control js-auth-method", disabled: 'disabled' }
= select_tag :auth_method, options_for_select([[_('Password'), 'password']], 'password'), { class: "form-control js-auth-method", disabled: true }
.form-group
= label_tag :password, _('Password'), class: 'label-bold'
......
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