Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fe1c293b
Commit
fe1c293b
authored
Apr 23, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant param from helper function
parent
194b91fd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/services_helper.rb
app/helpers/services_helper.rb
+1
-1
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+1
-1
app/views/shared/integrations/_form.html.haml
app/views/shared/integrations/_form.html.haml
+1
-1
No files found.
app/helpers/services_helper.rb
View file @
fe1c293b
...
...
@@ -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'
)
...
...
app/views/projects/services/_form.html.haml
View file @
fe1c293b
...
...
@@ -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'
...
...
app/views/shared/integrations/_form.html.haml
View file @
fe1c293b
...
...
@@ -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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment