Commit c3981bea authored by Andrew Fontaine's avatar Andrew Fontaine

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

Fix component option order in feature_flags

See merge request gitlab-org/gitlab!51363
parents 35de2d54 fb8fca7c
...@@ -31,6 +31,13 @@ export default { ...@@ -31,6 +31,13 @@ export default {
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
inject: [
'projectName',
'featureFlagsHelpPagePath',
'unleashApiUrl',
'featureFlagsClientExampleHelpPagePath',
'featureFlagsClientLibrariesHelpPagePath',
],
props: { props: {
instanceId: { instanceId: {
...@@ -55,13 +62,6 @@ export default { ...@@ -55,13 +62,6 @@ export default {
required: true, required: true,
}, },
}, },
inject: [
'projectName',
'featureFlagsHelpPagePath',
'unleashApiUrl',
'featureFlagsClientExampleHelpPagePath',
'featureFlagsClientLibrariesHelpPagePath',
],
translations: { translations: {
cancelActionLabel: __('Close'), cancelActionLabel: __('Close'),
modalTitle: s__('FeatureFlags|Configure feature flags'), modalTitle: s__('FeatureFlags|Configure feature flags'),
......
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
GlButton, GlButton,
GlSearchBoxByType, GlSearchBoxByType,
}, },
inject: ['environmentsEndpoint'],
props: { props: {
value: { value: {
type: String, type: String,
...@@ -53,7 +54,6 @@ export default { ...@@ -53,7 +54,6 @@ export default {
required: false, required: false,
}, },
}, },
inject: ['environmentsEndpoint'],
data() { data() {
return { return {
environmentSearch: this.value, environmentSearch: this.value,
......
...@@ -3,6 +3,7 @@ import { GlAlert, GlBadge, GlEmptyState, GlLink, GlLoadingIcon, GlTab } from '@g ...@@ -3,6 +3,7 @@ import { GlAlert, GlBadge, GlEmptyState, GlLink, GlLoadingIcon, GlTab } from '@g
export default { export default {
components: { GlAlert, GlBadge, GlEmptyState, GlLink, GlLoadingIcon, GlTab }, components: { GlAlert, GlBadge, GlEmptyState, GlLink, GlLoadingIcon, GlTab },
inject: ['errorStateSvgPath', 'featureFlagsHelpPagePath'],
props: { props: {
title: { title: {
required: true, required: true,
...@@ -46,7 +47,6 @@ export default { ...@@ -46,7 +47,6 @@ export default {
type: String, type: String,
}, },
}, },
inject: ['errorStateSvgPath', 'featureFlagsHelpPagePath'],
computed: { computed: {
itemCount() { itemCount() {
return this.count ?? 0; return this.count ?? 0;
......
...@@ -17,13 +17,13 @@ export default { ...@@ -17,13 +17,13 @@ export default {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
mixins: [glFeatureFlagMixin()], mixins: [glFeatureFlagMixin()],
inject: ['csrfToken'],
props: { props: {
featureFlags: { featureFlags: {
type: Array, type: Array,
required: true, required: true,
}, },
}, },
inject: ['csrfToken'],
data() { data() {
return { return {
deleteFeatureFlagUrl: null, deleteFeatureFlagUrl: null,
......
...@@ -46,6 +46,11 @@ export default { ...@@ -46,6 +46,11 @@ export default {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
mixins: [featureFlagsMixin()], mixins: [featureFlagsMixin()],
inject: {
featureFlagIssuesEndpoint: {
default: '',
},
},
props: { props: {
active: { active: {
type: Boolean, type: Boolean,
...@@ -86,11 +91,6 @@ export default { ...@@ -86,11 +91,6 @@ export default {
default: LEGACY_FLAG, default: LEGACY_FLAG,
}, },
}, },
inject: {
featureFlagIssuesEndpoint: {
default: '',
},
},
translations: { translations: {
allEnvironmentsText: s__('FeatureFlags|* (All Environments)'), allEnvironmentsText: s__('FeatureFlags|* (All Environments)'),
......
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