Commit d19eafe8 authored by Fernando's avatar Fernando

Add assertion field and additional info header

* Add conditional logic
parent 712e3a8e
......@@ -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>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment