Commit 41fb26cf authored by Phil Hughes's avatar Phil Hughes

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

Fix component option order in boards

See merge request gitlab-org/gitlab!51360
parents 3b662c77 5f8a5694
...@@ -11,6 +11,11 @@ export default { ...@@ -11,6 +11,11 @@ export default {
BoardListHeader, BoardListHeader,
BoardList, BoardList,
}, },
inject: {
boardId: {
default: '',
},
},
props: { props: {
list: { list: {
type: Object, type: Object,
...@@ -27,11 +32,6 @@ export default { ...@@ -27,11 +32,6 @@ export default {
default: false, default: false,
}, },
}, },
inject: {
boardId: {
default: '',
},
},
data() { data() {
return { return {
detailIssue: boardsStore.detail, detailIssue: boardsStore.detail,
......
...@@ -9,6 +9,11 @@ export default { ...@@ -9,6 +9,11 @@ export default {
BoardListHeader, BoardListHeader,
BoardList, BoardList,
}, },
inject: {
boardId: {
default: '',
},
},
props: { props: {
list: { list: {
type: Object, type: Object,
...@@ -25,11 +30,6 @@ export default { ...@@ -25,11 +30,6 @@ export default {
default: false, default: false,
}, },
}, },
inject: {
boardId: {
default: '',
},
},
computed: { computed: {
...mapState(['filterParams']), ...mapState(['filterParams']),
...mapGetters(['getIssuesByList']), ...mapGetters(['getIssuesByList']),
......
...@@ -49,6 +49,14 @@ export default { ...@@ -49,6 +49,14 @@ export default {
GlModal, GlModal,
BoardConfigurationOptions, BoardConfigurationOptions,
}, },
inject: {
fullPath: {
default: '',
},
rootPath: {
default: '',
},
},
props: { props: {
canAdminBoard: { canAdminBoard: {
type: Boolean, type: Boolean,
...@@ -92,14 +100,6 @@ export default { ...@@ -92,14 +100,6 @@ export default {
required: true, required: true,
}, },
}, },
inject: {
fullPath: {
default: '',
},
rootPath: {
default: '',
},
},
data() { data() {
return { return {
board: { ...boardDefaults, ...this.currentBoard }, board: { ...boardDefaults, ...this.currentBoard },
......
...@@ -31,6 +31,11 @@ export default { ...@@ -31,6 +31,11 @@ export default {
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
inject: {
boardId: {
default: '',
},
},
props: { props: {
list: { list: {
type: Object, type: Object,
...@@ -47,11 +52,6 @@ export default { ...@@ -47,11 +52,6 @@ export default {
default: false, default: false,
}, },
}, },
inject: {
boardId: {
default: '',
},
},
data() { data() {
return { return {
weightFeatureAvailable: false, weightFeatureAvailable: false,
......
...@@ -37,6 +37,20 @@ export default { ...@@ -37,6 +37,20 @@ export default {
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
inject: {
boardId: {
default: '',
},
weightFeatureAvailable: {
default: false,
},
scopedLabelsAvailable: {
default: false,
},
currentUserId: {
default: null,
},
},
props: { props: {
list: { list: {
type: Object, type: Object,
...@@ -53,20 +67,6 @@ export default { ...@@ -53,20 +67,6 @@ export default {
default: false, default: false,
}, },
}, },
inject: {
boardId: {
default: '',
},
weightFeatureAvailable: {
default: false,
},
scopedLabelsAvailable: {
default: false,
},
currentUserId: {
default: null,
},
},
computed: { computed: {
...mapState(['activeId']), ...mapState(['activeId']),
isLoggedIn() { isLoggedIn() {
......
...@@ -16,13 +16,13 @@ export default { ...@@ -16,13 +16,13 @@ export default {
GlButton, GlButton,
}, },
mixins: [glFeatureFlagMixin()], mixins: [glFeatureFlagMixin()],
inject: ['groupId'],
props: { props: {
list: { list: {
type: Object, type: Object,
required: true, required: true,
}, },
}, },
inject: ['groupId'],
data() { data() {
return { return {
title: '', title: '',
......
...@@ -18,13 +18,13 @@ export default { ...@@ -18,13 +18,13 @@ export default {
GlButton, GlButton,
}, },
mixins: [glFeatureFlagMixin()], mixins: [glFeatureFlagMixin()],
inject: ['groupId', 'weightFeatureAvailable', 'boardWeight'],
props: { props: {
list: { list: {
type: Object, type: Object,
required: true, required: true,
}, },
}, },
inject: ['groupId', 'weightFeatureAvailable', 'boardWeight'],
data() { data() {
return { return {
title: '', title: '',
......
...@@ -27,6 +27,7 @@ export default { ...@@ -27,6 +27,7 @@ export default {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
mixins: [issueCardInner], mixins: [issueCardInner],
inject: ['groupId', 'rootPath', 'scopedLabelsAvailable'],
props: { props: {
issue: { issue: {
type: Object, type: Object,
...@@ -43,7 +44,6 @@ export default { ...@@ -43,7 +44,6 @@ export default {
default: false, default: false,
}, },
}, },
inject: ['groupId', 'rootPath', 'scopedLabelsAvailable'],
data() { data() {
return { return {
limitBeforeCounter: 2, limitBeforeCounter: 2,
......
...@@ -25,6 +25,7 @@ export default { ...@@ -25,6 +25,7 @@ export default {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
mixins: [issueCardInner], mixins: [issueCardInner],
inject: ['groupId', 'rootPath'],
props: { props: {
issue: { issue: {
type: Object, type: Object,
...@@ -41,7 +42,6 @@ export default { ...@@ -41,7 +42,6 @@ export default {
default: false, default: false,
}, },
}, },
inject: ['groupId', 'rootPath'],
data() { data() {
return { return {
limitBeforeCounter: 2, limitBeforeCounter: 2,
......
...@@ -11,13 +11,13 @@ export default { ...@@ -11,13 +11,13 @@ export default {
GlIcon, GlIcon,
GlTooltip, GlTooltip,
}, },
inject: ['timeTrackingLimitToHours'],
props: { props: {
estimate: { estimate: {
type: Number, type: Number,
required: true, required: true,
}, },
}, },
inject: ['timeTrackingLimitToHours'],
computed: { computed: {
title() { title() {
return stringifyTime( return stringifyTime(
......
...@@ -33,13 +33,13 @@ export default { ...@@ -33,13 +33,13 @@ export default {
GlDropdownText, GlDropdownText,
GlSearchBoxByType, GlSearchBoxByType,
}, },
inject: ['groupId'],
props: { props: {
list: { list: {
type: Object, type: Object,
required: true, required: true,
}, },
}, },
inject: ['groupId'],
data() { data() {
return { return {
initialLoading: true, initialLoading: true,
......
...@@ -3,6 +3,7 @@ import { GlButton, GlLoadingIcon } from '@gitlab/ui'; ...@@ -3,6 +3,7 @@ import { GlButton, GlLoadingIcon } from '@gitlab/ui';
export default { export default {
components: { GlButton, GlLoadingIcon }, components: { GlButton, GlLoadingIcon },
inject: ['canUpdate'],
props: { props: {
title: { title: {
type: String, type: String,
...@@ -25,7 +26,6 @@ export default { ...@@ -25,7 +26,6 @@ export default {
default: true, default: true,
}, },
}, },
inject: ['canUpdate'],
data() { data() {
return { return {
edit: false, edit: false,
......
...@@ -14,12 +14,12 @@ export default { ...@@ -14,12 +14,12 @@ export default {
LabelsSelect, LabelsSelect,
GlLabel, GlLabel,
}, },
inject: ['labelsFetchPath', 'labelsManagePath', 'labelsFilterBasePath'],
data() { data() {
return { return {
loading: false, loading: false,
}; };
}, },
inject: ['labelsFetchPath', 'labelsManagePath', 'labelsFilterBasePath'],
computed: { computed: {
...mapGetters(['activeIssue', 'projectPathForActiveIssue']), ...mapGetters(['activeIssue', 'projectPathForActiveIssue']),
selectedLabels() { selectedLabels() {
......
...@@ -18,6 +18,10 @@ export default (params = {}) => { ...@@ -18,6 +18,10 @@ export default (params = {}) => {
BoardsSelector, BoardsSelector,
}, },
apolloProvider, apolloProvider,
provide: {
fullPath: params.fullPath,
rootPath: params.rootPath,
},
data() { data() {
const { dataset } = boardsSwitcherElement; const { dataset } = boardsSwitcherElement;
...@@ -35,10 +39,6 @@ export default (params = {}) => { ...@@ -35,10 +39,6 @@ export default (params = {}) => {
return { boardsSelectorProps }; return { boardsSelectorProps };
}, },
provide: {
fullPath: params.fullPath,
rootPath: params.rootPath,
},
render(createElement) { render(createElement) {
return createElement(BoardsSelector, { return createElement(BoardsSelector, {
props: this.boardsSelectorProps, props: this.boardsSelectorProps,
......
...@@ -12,12 +12,12 @@ export default { ...@@ -12,12 +12,12 @@ export default {
BoardEditableItem, BoardEditableItem,
EpicsSelect, EpicsSelect,
}, },
inject: ['groupId'],
data() { data() {
return { return {
loading: false, loading: false,
}; };
}, },
inject: ['groupId'],
computed: { computed: {
...mapState(['epics']), ...mapState(['epics']),
...mapGetters(['activeIssue', 'getEpicById', 'projectPathForActiveIssue']), ...mapGetters(['activeIssue', 'getEpicById', 'projectPathForActiveIssue']),
......
...@@ -3,10 +3,10 @@ import { mapGetters } from 'vuex'; ...@@ -3,10 +3,10 @@ import { mapGetters } from 'vuex';
import IssuableTimeTracker from '~/sidebar/components/time_tracking/time_tracker.vue'; import IssuableTimeTracker from '~/sidebar/components/time_tracking/time_tracker.vue';
export default { export default {
inject: ['timeTrackingLimitToHours'],
components: { components: {
IssuableTimeTracker, IssuableTimeTracker,
}, },
inject: ['timeTrackingLimitToHours'],
computed: { computed: {
...mapGetters(['activeIssue']), ...mapGetters(['activeIssue']),
}, },
......
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