Skip to content
Snippets Groups Projects
Commit 262b1a45 authored by David Pisek's avatar David Pisek :palm_tree:
Browse files

Add crashType to vulnerability details

This commit shows the crash-type of a vulnerability's location if
it is provided.

Changelog: added
EE: true
parent bd8bf24c
No related branches found
No related tags found
1 merge request!90947Add crashType to vulnerability details
......@@ -295,6 +295,11 @@ export default {
:sprintf-message="__('%{labelStart}Crash Address:%{labelEnd} %{crash_address}')"
>{{ location.crashAddress }}
</detail-item>
<detail-item
v-if="location.crashType"
:sprintf-message="__('%{labelStart}Crash Type:%{labelEnd} %{crash_type}')"
>{{ location.crashType }}
</detail-item>
<detail-item
v-if="location.crashState"
:sprintf-message="__('%{labelStart}Crash State:%{labelEnd} %{crash_state}')"
......
......@@ -133,6 +133,11 @@ describe('Vulnerability Details', () => {
expect(getText('method')).toBe(`Method: method name`);
});
it('shows the crash type if it exists', () => {
createWrapper({ location: { crashType: 'crash type' } });
expect(getText('crash_type')).toBe(`Crash Type: crash type`);
});
it('shows the evidence if it exists', () => {
createWrapper({ evidence: 'some evidence' });
expect(getText('evidence')).toBe(`Evidence: some evidence`);
......
......@@ -724,6 +724,9 @@ msgstr ""
msgid "%{labelStart}Crash State:%{labelEnd} %{stacktrace_snippet}"
msgstr ""
 
msgid "%{labelStart}Crash Type:%{labelEnd} %{crash_type}"
msgstr ""
msgid "%{labelStart}Evidence:%{labelEnd} %{evidence}"
msgstr ""
 
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment