BigW Consortium Gitlab

Commit 4595d5bf by Dmitriy Zaporozhets

Merge branch 'show_test_settings_button' into 'master'

Show test settings as disabled when service cannot be tested. See merge request !1725
parents f3d50461 5aa97ce9
......@@ -101,5 +101,6 @@
.form-actions
= f.submit 'Save', class: 'btn btn-save'
 
- if @service.valid? && @service.activated? && @service.can_test?
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service.to_param), class: 'btn'
- if @service.valid? && @service.activated?
- disabled = @service.can_test? ? '':'disabled'
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service.to_param), class: "btn #{disabled}"
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