Commit 0867a9df authored by Mark Florian's avatar Mark Florian

Fix component option order in alerts_settings

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

Part of https://gitlab.com/gitlab-org/gitlab/-/issues/297216.
parent a1239653
......@@ -40,6 +40,11 @@ export default {
directives: {
GlTooltip,
},
inject: {
gitlabAlertFields: {
default: gitlabFieldsMock,
},
},
props: {
payloadFields: {
type: Array,
......@@ -57,11 +62,6 @@ export default {
gitlabFields: this.gitlabAlertFields,
};
},
inject: {
gitlabAlertFields: {
default: gitlabFieldsMock,
},
},
computed: {
mappingData() {
return this.gitlabFields.map((gitlabField) => {
......
......@@ -117,6 +117,7 @@ export default {
directives: {
GlModal: GlModalDirective,
},
mixins: [glFeatureFlagsMixin()],
inject: {
generic: {
default: {},
......@@ -125,7 +126,6 @@ export default {
default: {},
},
},
mixins: [glFeatureFlagsMixin()],
props: {
loading: {
type: Boolean,
......
......@@ -35,6 +35,9 @@ export default (el) => {
return new Vue({
el,
components: {
AlertSettingsWrapper,
},
provide: {
prometheus: {
active: parseBoolean(prometheusActivated),
......@@ -56,9 +59,6 @@ export default (el) => {
multiIntegrations: parseBoolean(multiIntegrations),
},
apolloProvider,
components: {
AlertSettingsWrapper,
},
render(createElement) {
return createElement('alert-settings-wrapper');
},
......
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