Commit ebf78253 authored by Alexander Turinske's avatar Alexander Turinske

Add operational vulnerability tab

- add new tab to show operational vulnerabilities
parent 19e391ba
...@@ -7,6 +7,7 @@ import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants'; ...@@ -7,6 +7,7 @@ import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants';
export default { export default {
i18n: { i18n: {
developmentTab: s__('SecurityReports|Development vulnerabilities'), developmentTab: s__('SecurityReports|Development vulnerabilities'),
operationalTab: s__('SecurityReports|Operational vulnerabilities'),
}, },
components: { components: {
GlTabs, GlTabs,
...@@ -45,14 +46,11 @@ export default { ...@@ -45,14 +46,11 @@ export default {
<gl-tabs <gl-tabs
v-if="shouldShowTabs" v-if="shouldShowTabs"
sync-active-tab-with-query-params
:content-class="{ 'gl-pt-0': isProject, 'gl-pt-7': !isProject }" :content-class="{ 'gl-pt-0': isProject, 'gl-pt-7': !isProject }"
nav-class="gl-mt-3" nav-class="gl-mt-3"
> >
<gl-tab> <gl-tab :title="$options.i18n.developmentTab">
<template #title>
<span>{{ $options.i18n.developmentTab }}</span>
</template>
<section v-if="hasSummarySlot" data-testid="summary-section"> <section v-if="hasSummarySlot" data-testid="summary-section">
<slot name="summary"></slot> <slot name="summary"></slot>
</section> </section>
...@@ -71,6 +69,12 @@ export default { ...@@ -71,6 +69,12 @@ export default {
</article> </article>
</div> </div>
</gl-tab> </gl-tab>
<gl-tab
:title="$options.i18n.operationalTab"
:query-param-value="$options.i18n.operationalTab.toLowerCase()"
>
<div></div>
</gl-tab>
</gl-tabs> </gl-tabs>
<template v-else> <template v-else>
......
...@@ -30349,6 +30349,9 @@ msgstr "" ...@@ -30349,6 +30349,9 @@ msgstr ""
msgid "SecurityReports|Oops, something doesn't seem right." msgid "SecurityReports|Oops, something doesn't seem right."
msgstr "" msgstr ""
msgid "SecurityReports|Operational vulnerabilities"
msgstr ""
msgid "SecurityReports|Project" msgid "SecurityReports|Project"
msgstr "" msgstr ""
......
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