debian-mirror-gitlab/app/assets/javascripts/ref/stores/state.js
2023-06-20 00:43:36 +05:30

20 lines
346 B
JavaScript

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