Commit 00ebeac1 authored by Mark Florian's avatar Mark Florian

Fix component option order in on_demand_scans

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

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/297216.
parent a1239653
...@@ -102,6 +102,11 @@ export default { ...@@ -102,6 +102,11 @@ export default {
); );
}, },
}, },
inject: {
dastSiteValidationDocsPath: {
default: '',
},
},
props: { props: {
helpPagePath: { helpPagePath: {
type: String, type: String,
...@@ -122,11 +127,6 @@ export default { ...@@ -122,11 +127,6 @@ export default {
default: null, default: null,
}, },
}, },
inject: {
dastSiteValidationDocsPath: {
default: '',
},
},
data() { data() {
const savedScansFields = this.glFeatures.dastSavedScans const savedScansFields = this.glFeatures.dastSavedScans
? { ? {
......
...@@ -9,13 +9,6 @@ export default { ...@@ -9,13 +9,6 @@ export default {
ProfileSelector, ProfileSelector,
}, },
mixins: [glFeatureFlagsMixin()], mixins: [glFeatureFlagsMixin()],
props: {
profiles: {
type: Array,
required: false,
default: () => [],
},
},
inject: { inject: {
scannerProfilesLibraryPath: { scannerProfilesLibraryPath: {
default: '', default: '',
...@@ -24,6 +17,13 @@ export default { ...@@ -24,6 +17,13 @@ export default {
default: '', default: '',
}, },
}, },
props: {
profiles: {
type: Array,
required: false,
default: () => [],
},
},
computed: { computed: {
formattedProfiles() { formattedProfiles() {
return this.profiles.map((profile) => { return this.profiles.map((profile) => {
......
...@@ -10,13 +10,6 @@ export default { ...@@ -10,13 +10,6 @@ export default {
ProfileSelector, ProfileSelector,
}, },
mixins: [glFeatureFlagsMixin()], mixins: [glFeatureFlagsMixin()],
props: {
profiles: {
type: Array,
required: false,
default: () => [],
},
},
inject: { inject: {
siteProfilesLibraryPath: { siteProfilesLibraryPath: {
default: '', default: '',
...@@ -25,6 +18,13 @@ export default { ...@@ -25,6 +18,13 @@ export default {
default: '', default: '',
}, },
}, },
props: {
profiles: {
type: Array,
required: false,
default: () => [],
},
},
computed: { computed: {
formattedProfiles() { formattedProfiles() {
return this.profiles.map((profile) => { return this.profiles.map((profile) => {
......
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