debian-mirror-gitlab/app/assets/javascripts/boards/stores/state.js
2022-05-07 20:08:51 +05:30

43 lines
948 B
JavaScript

import { inactiveId, ListType } from '~/boards/constants';
export default () => ({
board: {},
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,
});