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 {
VulnerabilitiesCountList,
},
mixins: [glFeatureFlagsMixin()],
inject: [
'groupFullPath',
'dashboardType',
'dashboardDocumentation',
'autoFixDocumentation',
'pipeline',
],
inject: {
dashboardType: {},
groupFullPath: { default: undefined },
autoFixDocumentation: { default: undefined },
pipeline: { default: undefined },
},
queries: {
[DASHBOARD_TYPES.GROUP]: groupProjectsQuery,
[DASHBOARD_TYPES.INSTANCE]: instanceProjectsQuery,
......
......@@ -53,7 +53,6 @@ export default (el, dashboardType) => {
}
const provide = {
pipeline: undefined,
dashboardType,
dashboardDocumentation,
noVulnerabilitiesSvgPath,
......
......@@ -56,12 +56,6 @@ describe('Vulnerability Report', () => {
mocks,
propsData,
provide: {
pipeline: undefined,
groupFullPath: undefined,
projectFullPath: undefined,
autoFixDocumentation: undefined,
dashboardDocumentation: 'path/to/documentation',
securityDashboardHelpPath: 'path/to/project/documentation',
...provide,
},
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