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
29b044bd
Commit
29b044bd
authored
Jan 06, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use named arguments in onSubmit method
parent
f9077b6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
...ripts/on_demand_scans/components/on_demand_scans_form.vue
+2
-2
No files found.
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
View file @
29b044bd
...
...
@@ -220,7 +220,7 @@ export default {
},
},
methods
:
{
onSubmit
(
runAfterCreate
=
true
,
button
=
this
.
$options
.
saveAndRunScanBtnId
)
{
onSubmit
(
{
runAfterCreate
=
true
,
button
=
this
.
$options
.
saveAndRunScanBtnId
}
=
{}
)
{
if
(
this
.
glFeatures
.
dastSavedScans
)
{
this
.
form
.
showValidation
=
true
;
if
(
!
this
.
form
.
state
)
{
...
...
@@ -505,7 +505,7 @@ export default {
data-testid=
"on-demand-scan-save-button"
:disabled=
"isSaveButtonDisabled"
:loading=
"loading === $options.saveScanBtnId"
@
click=
"onSubmit(
false, $options.saveScanBtnId
)"
@
click=
"onSubmit(
{ runAfterCreate: false, button: $options.saveScanBtnId }
)"
>
{{ s__('OnDemandScans|Save scan') }}
</gl-button>
...
...
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