Skip to content
Snippets Groups Projects
Commit 5aa97ce9 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Show test settings as disabled when service cannot be tested.

parent fa7ee3ad
No related branches found
No related tags found
1 merge request!8686add "Uplaod" and "Replace" functionality
Loading
Loading
@@ -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}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment