summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ref/stores/state.js
blob: 65b9d6449d7dc4dc7fc5769b5f2da347d5ed4632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export default () => ({
  projectId: null,

  query: '',
  matches: {
    branches: {
      list: [],
      totalCount: 0,
      error: null,
    },
    tags: {
      list: [],
      totalCount: 0,
      error: null,
    },
    commits: {
      list: [],
      totalCount: 0,
      error: null,
    },
  },
  selectedRef: null,
  requestCount: 0,
});