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
a5db2cc5
Commit
a5db2cc5
authored
Mar 12, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move parsing to computed property
parent
77f8b9fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
ee/app/assets/javascripts/security_configuration/dast_site_profiles_form/components/dast_site_profile_form.vue
..._site_profiles_form/components/dast_site_profile_form.vue
+6
-4
No files found.
ee/app/assets/javascripts/security_configuration/dast_site_profiles_form/components/dast_site_profile_form.vue
View file @
a5db2cc5
...
...
@@ -149,6 +149,11 @@ export default {
isPolicyProfile
()
{
return
Boolean
(
this
.
siteProfile
?.
referencedInSecurityPolicies
?.
length
);
},
parsedExcludedUrls
()
{
return
this
.
form
.
fields
.
excludedUrls
.
value
.
split
(
EXCLUDED_URLS_SEPARATOR
)
.
map
((
url
)
=>
url
.
trim
());
},
},
async
mounted
()
{
if
(
this
.
isEdit
)
{
...
...
@@ -156,9 +161,6 @@ export default {
}
},
methods
:
{
parseExcludedUrls
(
input
)
{
return
input
.
value
.
split
(
EXCLUDED_URLS_SEPARATOR
).
map
((
url
)
=>
url
.
trim
());
},
onSubmit
()
{
const
isAuthEnabled
=
this
.
glFeatures
.
securityDastSiteProfilesAdditionalFields
&&
...
...
@@ -186,7 +188,7 @@ export default {
...
additionalFields
,
auth
:
serializeFormObject
(
this
.
authSection
.
fields
),
...(
additionalFields
.
excludedUrls
&&
{
excludedUrls
:
this
.
parse
ExcludedUrls
(
this
.
form
.
fields
.
excludedUrls
)
,
excludedUrls
:
this
.
parse
dExcludedUrls
,
}),
}),
},
...
...
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