Commit fe1c293b authored by Justin Ho's avatar Justin Ho

Remove redundant param from helper function

parent 194b91fd
......@@ -51,7 +51,7 @@ module ServicesHelper
end
end
def service_save_button(service)
def service_save_button
button_tag(class: 'btn btn-success', type: 'submit', data: { qa_selector: 'save_changes_button' }) do
icon('spinner spin', class: 'hidden js-btn-spinner') +
content_tag(:span, 'Save changes', class: 'js-btn-label')
......
......@@ -13,7 +13,7 @@
= form_for(@service, as: :service, url: scoped_integration_path(@service), method: :put, html: { class: 'gl-show-field-errors integration-settings-form js-integration-settings-form', data: { 'can-test' => @service.can_test?, 'test-url' => test_project_service_path(@project, @service) } }) do |form|
= render 'shared/service_settings', form: form, service: @service
.footer-block.row-content-block
= service_save_button(@service)
= service_save_button
 
= link_to _('Cancel'), project_settings_integrations_path(@project), class: 'btn btn-cancel'
......
......@@ -10,5 +10,5 @@
- if integration.editable?
.footer-block.row-content-block
= service_save_button(integration)
= service_save_button
= link_to _('Cancel'), scoped_integration_path(integration), class: 'btn btn-cancel'
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