summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/badges/store/state.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/badges/store/state.js')
-rw-r--r--app/assets/javascripts/badges/store/state.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/badges/store/state.js b/app/assets/javascripts/badges/store/state.js
new file mode 100644
index 00000000000..43413aeb5bb
--- /dev/null
+++ b/app/assets/javascripts/badges/store/state.js
@@ -0,0 +1,13 @@
+export default () => ({
+ apiEndpointUrl: null,
+ badgeInAddForm: null,
+ badgeInEditForm: null,
+ badgeInModal: null,
+ badges: [],
+ docsUrl: null,
+ renderedBadge: null,
+ isEditing: false,
+ isLoading: false,
+ isRendering: false,
+ isSaving: false,
+});