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 { ...@@ -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