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 { ...@@ -53,6 +53,9 @@ export default {
properties: {}, properties: {},
}; };
}, },
assert() {
return this.vulnerability.evidence_source?.name;
},
getConstructedRequest() { getConstructedRequest() {
const { body, method, url, headers = [] } = this.vulnerability.request; const { body, method, url, headers = [] } = this.vulnerability.request;
const headerLines = this.getHeadersAsCodeBlockLines(headers); const headerLines = this.getHeadersAsCodeBlockLines(headers);
...@@ -323,5 +326,14 @@ export default { ...@@ -323,5 +326,14 @@ export default {
</ul> </ul>
</section> </section>
</div> </div>
<template v-if="assert">
<h3>{{ __('Additional Info') }}</h3>
<ul>
<detail-item :sprintf-message="__('%{labelStart}Assert:%{labelEnd} %{assert}')"
>{{ assert }}
</detail-item>
</ul>
</template>
</div> </div>
</template> </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