Commit db4b563b authored by Simon Knox's avatar Simon Knox

Merge branch '300753-switch-vulnerability-report-inject-signature' into 'master'

Provide default values for injections

See merge request gitlab-org/gitlab!60516
parents e2a42a87 2b43844c
...@@ -38,13 +38,12 @@ export default { ...@@ -38,13 +38,12 @@ export default {
VulnerabilitiesCountList, VulnerabilitiesCountList,
}, },
mixins: [glFeatureFlagsMixin()], mixins: [glFeatureFlagsMixin()],
inject: [ inject: {
'groupFullPath', dashboardType: {},
'dashboardType', groupFullPath: { default: undefined },
'dashboardDocumentation', autoFixDocumentation: { default: undefined },
'autoFixDocumentation', pipeline: { default: undefined },
'pipeline', },
],
queries: { queries: {
[DASHBOARD_TYPES.GROUP]: groupProjectsQuery, [DASHBOARD_TYPES.GROUP]: groupProjectsQuery,
[DASHBOARD_TYPES.INSTANCE]: instanceProjectsQuery, [DASHBOARD_TYPES.INSTANCE]: instanceProjectsQuery,
......
...@@ -53,7 +53,6 @@ export default (el, dashboardType) => { ...@@ -53,7 +53,6 @@ export default (el, dashboardType) => {
} }
const provide = { const provide = {
pipeline: undefined,
dashboardType, dashboardType,
dashboardDocumentation, dashboardDocumentation,
noVulnerabilitiesSvgPath, noVulnerabilitiesSvgPath,
......
...@@ -56,12 +56,6 @@ describe('Vulnerability Report', () => { ...@@ -56,12 +56,6 @@ describe('Vulnerability Report', () => {
mocks, mocks,
propsData, propsData,
provide: { provide: {
pipeline: undefined,
groupFullPath: undefined,
projectFullPath: undefined,
autoFixDocumentation: undefined,
dashboardDocumentation: 'path/to/documentation',
securityDashboardHelpPath: 'path/to/project/documentation',
...provide, ...provide,
}, },
stubs: { SecurityDashboardLayout }, stubs: { SecurityDashboardLayout },
......
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