Commit 2ea0c5db authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch 'fix-vue-order-in-components-security_dashboard' into 'master'

Fix component option order in security_dashboard

See merge request gitlab-org/gitlab!51373
parents 8b958468 43b3804d
...@@ -6,13 +6,13 @@ export default { ...@@ -6,13 +6,13 @@ export default {
components: { components: {
GlEmptyState, GlEmptyState,
}, },
inject: ['emptyStateSvgPath'],
props: { props: {
helpPath: { helpPath: {
type: String, type: String,
required: true, required: true,
}, },
}, },
inject: ['emptyStateSvgPath'],
DESCRIPTION: s__( DESCRIPTION: s__(
`SecurityReports|The security dashboard displays the latest security report. Use it to find and fix vulnerabilities.`, `SecurityReports|The security dashboard displays the latest security report. Use it to find and fix vulnerabilities.`,
), ),
......
...@@ -25,6 +25,7 @@ export default { ...@@ -25,6 +25,7 @@ export default {
Filters, Filters,
}, },
mixins: [glFeatureFlagsMixin()], mixins: [glFeatureFlagsMixin()],
inject: ['dashboardDocumentation', 'autoFixDocumentation', 'projectFullPath'],
props: { props: {
securityDashboardHelpPath: { securityDashboardHelpPath: {
type: String, type: String,
...@@ -49,7 +50,6 @@ export default { ...@@ -49,7 +50,6 @@ export default {
shoudShowAutoFixUserCallout, shoudShowAutoFixUserCallout,
}; };
}, },
inject: ['dashboardDocumentation', 'autoFixDocumentation', 'projectFullPath'],
methods: { methods: {
handleFilterChange(filters) { handleFilterChange(filters) {
this.filters = filters; this.filters = filters;
......
...@@ -9,6 +9,7 @@ export default { ...@@ -9,6 +9,7 @@ export default {
GlLink, GlLink,
GlSprintf, GlSprintf,
}, },
inject: ['notEnabledScannersHelpPath', 'noPipelineRunScannersHelpPath'],
props: { props: {
notEnabledScanners: { notEnabledScanners: {
type: Array, type: Array,
...@@ -19,7 +20,6 @@ export default { ...@@ -19,7 +20,6 @@ export default {
required: true, required: true,
}, },
}, },
inject: ['notEnabledScannersHelpPath', 'noPipelineRunScannersHelpPath'],
computed: { computed: {
alertMessages() { alertMessages() {
return [ return [
......
...@@ -49,10 +49,10 @@ export default { ...@@ -49,10 +49,10 @@ export default {
FiltersProducedNoResults, FiltersProducedNoResults,
DashboardHasNoVulnerabilities, DashboardHasNoVulnerabilities,
}, },
inject: ['hasVulnerabilities'],
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
inject: ['hasVulnerabilities'],
props: { props: {
filters: { filters: {
type: Object, type: Object,
......
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