debian-mirror-gitlab/app/assets/javascripts/boards/stores/state.js
2021-12-11 22:18:48 +05:30

42 lines
935 B
JavaScript

import { inactiveId, ListType } from '~/boards/constants';
export default () => ({
boardType: null,
issuableType: null,
fullPath: null,
disabled: false,
isShowingLabels: true,
activeId: inactiveId,
sidebarType: '',
boardLists: {},
listsFlags: {},
boardItemsByListId: {},
backupItemsList: [],
isSettingAssignees: false,
pageInfoByListId: {},
boardItems: {},
filterParams: {},
boardConfig: {},
labelsLoading: false,
labels: [],
milestones: [],
milestonesLoading: false,
highlightedLists: [],
selectedBoardItems: [],
groupProjects: [],
groupProjectsFlags: {
isLoading: false,
isLoadingMore: false,
pageInfo: {},
},
selectedProject: {},
error: undefined,
iterations: [],
iterationsLoading: false,
addColumnForm: {
visible: false,
columnType: ListType.label,
},
// TODO: remove after ce/ee split of board_content.vue
isShowingEpicsSwimlanes: false,
});