diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-06-07 00:45:23 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-06-07 01:06:21 +0300 |
commit | 0cb4bb1af8fb5b5c71a9b547114563ccec355979 (patch) | |
tree | 3822ad36786dc4acecb5743f7fc5d4913149ac09 /app/views/projects/settings/ci_cd/_autodevops_form.html.haml | |
parent | af261c1b314058c3aefef3377b9f7f8a20701481 (diff) |
rely on presense or absense of data attribute instead of coerced boolean strings
Diffstat (limited to 'app/views/projects/settings/ci_cd/_autodevops_form.html.haml')
-rw-r--r-- | app/views/projects/settings/ci_cd/_autodevops_form.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/settings/ci_cd/_autodevops_form.html.haml b/app/views/projects/settings/ci_cd/_autodevops_form.html.haml index c3e10a93456..4359362bb05 100644 --- a/app/views/projects/settings/ci_cd/_autodevops_form.html.haml +++ b/app/views/projects/settings/ci_cd/_autodevops_form.html.haml @@ -13,7 +13,7 @@ .card.auto-devops-card .card-body .form-check - = form.radio_button :enabled, 'true', class: 'form-check-input', data: { hide_extra_settings: false } + = form.radio_button :enabled, 'true', class: 'form-check-input js-toggle-extra-settings' = form.label :enabled_true, class: 'form-check-label' do %strong= s_('CICD|Enable Auto DevOps') .form-text.text-muted @@ -22,7 +22,7 @@ .card.auto-devops-card .card-body .form-check - = form.radio_button :enabled, '', class: 'form-check-input', data: { hide_extra_settings: false } + = form.radio_button :enabled, '', class: 'form-check-input js-toggle-extra-settings' = form.label :enabled_, class: 'form-check-label' do %strong= s_('CICD|Instance default (%{state})') % { state: "#{Gitlab::CurrentSettings.auto_devops_enabled? ? _('enabled') : _('disabled')}" } .form-text.text-muted @@ -57,7 +57,7 @@ .card.auto-devops-card .card-body .form-check - = form.radio_button :enabled, 'false', class: 'form-check-input', data: { hide_extra_settings: true } + = form.radio_button :enabled, 'false', class: 'form-check-input js-toggle-extra-settings', data: { hide_extra_settings: true } = form.label :enabled_false, class: 'form-check-label' do %strong= s_('CICD|Disable Auto DevOps') .form-text.text-muted |