debian-mirror-gitlab/app/assets/javascripts/ref/stores/state.js
2021-04-17 20:07:23 +05:30

19 lines
330 B
JavaScript

const createRefTypeState = () => ({
list: [],
totalCount: 0,
error: null,
});
export default () => ({
enabledRefTypes: [],
projectId: null,
query: '',
matches: {
branches: createRefTypeState(),
tags: createRefTypeState(),
commits: createRefTypeState(),
},
selectedRef: null,
requestCount: 0,
});