Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « stores « ref « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3affa8f8d039827c4a1c1f27e1ebe162c30c813b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const createRefTypeState = () => ({
  list: [],
  totalCount: 0,
  error: null,
});

export default () => ({
  enabledRefTypes: [],
  projectId: null,

  query: '',
  matches: {
    branches: createRefTypeState(),
    tags: createRefTypeState(),
    commits: createRefTypeState(),
  },
  selectedRef: null,
  requestCount: 0,
});