summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ref/stores/state.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ref/stores/state.js')
-rw-r--r--app/assets/javascripts/ref/stores/state.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/assets/javascripts/ref/stores/state.js b/app/assets/javascripts/ref/stores/state.js
new file mode 100644
index 00000000000..65b9d6449d7
--- /dev/null
+++ b/app/assets/javascripts/ref/stores/state.js
@@ -0,0 +1,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,
+});