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
d19eafe8
Commit
d19eafe8
authored
Nov 07, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add assertion field and additional info header
* Add conditional logic
parent
712e3a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ee/app/assets/javascripts/vulnerabilities/components/details.vue
...assets/javascripts/vulnerabilities/components/details.vue
+12
-0
No files found.
ee/app/assets/javascripts/vulnerabilities/components/details.vue
View file @
d19eafe8
...
...
@@ -53,6 +53,9 @@ export default {
properties
:
{},
};
},
assert
()
{
return
this
.
vulnerability
.
evidence_source
?.
name
;
},
getConstructedRequest
()
{
const
{
body
,
method
,
url
,
headers
=
[]
}
=
this
.
vulnerability
.
request
;
const
headerLines
=
this
.
getHeadersAsCodeBlockLines
(
headers
);
...
...
@@ -323,5 +326,14 @@ export default {
</ul>
</section>
</div>
<
template
v-if=
"assert"
>
<h3>
{{
__
(
'
Additional Info
'
)
}}
</h3>
<ul>
<detail-item
:sprintf-message=
"__('%
{labelStart}Assert:%{labelEnd} %{assert}')"
>
{{
assert
}}
</detail-item>
</ul>
</
template
>
</div>
</template>
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