diff options
Diffstat (limited to 'workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js')
-rw-r--r-- | workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js b/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js index c7fccd22..d05af2d7 100644 --- a/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js +++ b/workflow-designer-ui/src/main/frontend/src/features/version/versionReducer.js @@ -16,9 +16,13 @@ import { SET_CURRENT_VERSION, DETAILS_CHANGED, - VERSION_STATE_CHANGED + VERSION_STATE_CHANGED, + TOGGLE_COMPOSITION_UPDATE } from 'features/version/versionConstants'; -const initialState = {}; + +const initialState = { + isCompositionUpdating: false +}; function versionReducer(state = initialState, action) { switch (action.type) { @@ -34,6 +38,11 @@ function versionReducer(state = initialState, action) { ...state, ...action.payload }; + case TOGGLE_COMPOSITION_UPDATE: + return { + ...state, + isCompositionUpdating: action.payload.isCompositionUpdating + }; default: return state; } |