Commit 43b3804d authored by Mark Florian's avatar Mark Florian

Fix component option order in security_dashboard

This fixes `vue/order-in-components` violations in the
`{,ee/}app/assets/javascripts/security_dashboard` directories.

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