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'; ...@@ -5,8 +5,10 @@ import { s__ } from '~/locale';
import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants'; import { DASHBOARD_TYPES } from 'ee/security_dashboard/store/constants';
export default { export default {
operationalTabParameter: 'operational',
i18n: { i18n: {
developmentTab: s__('SecurityReports|Development vulnerabilities'), developmentTab: s__('SecurityReports|Development vulnerabilities'),
operationalTab: s__('SecurityReports|Operational vulnerabilities'),
}, },
components: { components: {
GlTabs, GlTabs,
...@@ -45,14 +47,11 @@ export default { ...@@ -45,14 +47,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 +70,12 @@ export default { ...@@ -71,6 +70,12 @@ export default {
</article> </article>
</div> </div>
</gl-tab> </gl-tab>
<gl-tab
:title="$options.i18n.operationalTab"
:query-param-value="$options.operationalTabParameter"
>
<div></div>
</gl-tab>
</gl-tabs> </gl-tabs>
<template v-else> <template v-else>
......
...@@ -30340,6 +30340,9 @@ msgstr "" ...@@ -30340,6 +30340,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