Commit 4595d5bf authored by Dmitriy Zaporozhets's avatar 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 @@ ...@@ -101,5 +101,6 @@
.form-actions .form-actions
= f.submit 'Save', class: 'btn btn-save' = f.submit 'Save', class: 'btn btn-save'
   
- if @service.valid? && @service.activated? && @service.can_test? - if @service.valid? && @service.activated?
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service.to_param), class: 'btn' - 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