Commit 563c9344 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '337869-operational-vulnerabilities' into 'master'

Add operational vulnerability tab

See merge request gitlab-org/gitlab!71004
parents e44c0fb4 ae656c07
......@@ -5,8 +5,10 @@ import { s__ } from '~/locale';
import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants';
export default {
operationalTabParameter: 'operational',
i18n: {
developmentTab: s__('SecurityReports|Development vulnerabilities'),
operationalTab: s__('SecurityReports|Operational vulnerabilities'),
},
components: {
GlTabs,
......@@ -45,14 +47,11 @@ export default {
<gl-tabs
v-if="shouldShowTabs"
sync-active-tab-with-query-params
:content-class="{ 'gl-pt-0': isProject, 'gl-pt-7': !isProject }"
nav-class="gl-mt-3"
>
<gl-tab>
<template #title>
<span>{{ $options.i18n.developmentTab }}</span>
</template>
<gl-tab :title="$options.i18n.developmentTab">
<section v-if="hasSummarySlot" data-testid="summary-section">
<slot name="summary"></slot>
</section>
......@@ -71,6 +70,12 @@ export default {
</article>
</div>
</gl-tab>
<gl-tab
:title="$options.i18n.operationalTab"
:query-param-value="$options.operationalTabParameter"
>
<div></div>
</gl-tab>
</gl-tabs>
<template v-else>
......
......@@ -30340,6 +30340,9 @@ msgstr ""
msgid "SecurityReports|Oops, something doesn't seem right."
msgstr ""
msgid "SecurityReports|Operational vulnerabilities"
msgstr ""
msgid "SecurityReports|Project"
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