summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/feature_flags/store/edit/state.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/feature_flags/store/edit/state.js')
-rw-r--r--app/assets/javascripts/feature_flags/store/edit/state.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/assets/javascripts/feature_flags/store/edit/state.js b/app/assets/javascripts/feature_flags/store/edit/state.js
new file mode 100644
index 00000000000..ec507532d6a
--- /dev/null
+++ b/app/assets/javascripts/feature_flags/store/edit/state.js
@@ -0,0 +1,18 @@
+import { LEGACY_FLAG } from '../../constants';
+
+export default ({ path, endpoint }) => ({
+ endpoint,
+ path,
+ isSendingRequest: false,
+ error: [],
+
+ name: null,
+ description: null,
+ scopes: [],
+ isLoading: false,
+ hasError: false,
+ iid: null,
+ active: true,
+ strategies: [],
+ version: LEGACY_FLAG,
+});