aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/main/frontend/src/features/version/versionModeReducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui/src/main/frontend/src/features/version/versionModeReducer.js')
-rw-r--r--sdc-workflow-designer-ui/src/main/frontend/src/features/version/versionModeReducer.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/src/main/frontend/src/features/version/versionModeReducer.js b/sdc-workflow-designer-ui/src/main/frontend/src/features/version/versionModeReducer.js
new file mode 100644
index 00000000..9d4d67ea
--- /dev/null
+++ b/sdc-workflow-designer-ui/src/main/frontend/src/features/version/versionModeReducer.js
@@ -0,0 +1,10 @@
+import { SET_OPERRATION_MODE } from './versionConstants';
+
+export default (state = false, action) => {
+ switch (action.type) {
+ case SET_OPERRATION_MODE:
+ return true;
+ default:
+ return state;
+ }
+};