summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/releases/stores/modules/index/state.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/releases/stores/modules/index/state.js')
-rw-r--r--app/assets/javascripts/releases/stores/modules/index/state.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/assets/javascripts/releases/stores/modules/index/state.js b/app/assets/javascripts/releases/stores/modules/index/state.js
new file mode 100644
index 00000000000..164a496d450
--- /dev/null
+++ b/app/assets/javascripts/releases/stores/modules/index/state.js
@@ -0,0 +1,25 @@
+import { DESCENDING_ORDER, RELEASED_AT } from '../../../constants';
+
+export default ({
+ projectId,
+ projectPath,
+ documentationPath,
+ illustrationPath,
+ newReleasePath = '',
+}) => ({
+ projectId,
+ projectPath,
+ documentationPath,
+ illustrationPath,
+ newReleasePath,
+
+ isLoading: false,
+ hasError: false,
+ releases: [],
+ restPageInfo: {},
+ graphQlPageInfo: {},
+ sorting: {
+ sort: DESCENDING_ORDER,
+ orderBy: RELEASED_AT,
+ },
+});