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
b89f95b4
Commit
b89f95b4
authored
Apr 09, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix redirection on saving DAST scans
Navigate to Manage scans page on saving an On-demand DAST scan
parent
6798107e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
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
+1
-1
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
...d/on_demand_scans/components/on_demand_scans_form_spec.js
+1
-1
No files found.
ee/app/assets/javascripts/on_demand_scans/components/on_demand_scans_form.vue
View file @
b89f95b4
...
...
@@ -285,7 +285,7 @@ export default {
this
.
showErrors
(
ERROR_RUN_SCAN
,
errors
);
this
.
loading
=
false
;
}
else
if
(
!
runAfter
)
{
redirectTo
(
response
.
dastProfile
.
edit
Path
);
redirectTo
(
this
.
profilesLibrary
Path
);
this
.
clearStorage
=
true
;
}
else
{
this
.
clearStorage
=
true
;
...
...
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
View file @
b89f95b4
...
...
@@ -318,7 +318,7 @@ describe('OnDemandScansForm', () => {
describe
.
each
`
action | actionFunction | submitButtonLoading | saveButtonLoading | runAfter | redirectPath
${
'
submit
'
}
|
${
submitForm
}
|
${
true
}
|
${
false
}
|
${
true
}
|
${
pipelineUrl
}
${
'
save
'
}
|
${
saveScan
}
|
${
false
}
|
${
true
}
|
${
false
}
|
${
edit
Path
}
${
'
save
'
}
|
${
saveScan
}
|
${
false
}
|
${
true
}
|
${
false
}
|
${
profilesLibrary
Path
}
`
(
'
on $action
'
,
({
actionFunction
,
submitButtonLoading
,
saveButtonLoading
,
runAfter
,
redirectPath
})
=>
{
...
...
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