summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-05-29 12:16:02 +0530
committerJarka Kadlecova <jarka@gitlab.com>2017-06-01 07:47:15 +0200
commit095d9b5b238caf27ac9a9023bfed81629e9ecb5c (patch)
tree2083a8df618e5d97c9f5d8c5a28b4e075817e399 /app
parent69c47658c7d21c577c6ce73806e62be9ff713084 (diff)
downloadgitlab-ce-095d9b5b238caf27ac9a9023bfed81629e9ecb5c.tar.gz
Use `@service.can_test?` to enable test before save
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/services/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/services/_form.html.haml b/app/views/projects/services/_form.html.haml
index b6ff2806793..0d7002f6ba5 100644
--- a/app/views/projects/services/_form.html.haml
+++ b/app/views/projects/services/_form.html.haml
@@ -9,7 +9,7 @@
%p= @service.description
.col-lg-9
- = form_for(@service, as: :service, url: namespace_project_service_path(@project.namespace, @project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors form-horizontal js-integration-settings-from' }) do |form|
+ = form_for(@service, as: :service, url: namespace_project_service_path(@project.namespace, @project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors form-horizontal js-integration-settings-from', data: { "can-test" => "#{@service.can_test?}" } }) do |form|
= render 'shared/service_settings', form: form, subject: @service
.footer-block.row-content-block
%button.btn.btn-save{ type: 'submit' }