Commit 5aa97ce9 authored by Marin Jankovski's avatar Marin Jankovski

Show test settings as disabled when service cannot be tested.

parent fa7ee3ad
...@@ -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