X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3dbe57077135d1684407ba6cc2a0d20cfcb33618..17a3019e33d6d6820f50dabfa9d9ad7a4b02a4b8:/src/store/run-process-panel/run-process-panel-reducer.ts diff --git a/src/store/run-process-panel/run-process-panel-reducer.ts b/src/store/run-process-panel/run-process-panel-reducer.ts index 12c8988b..fe69f952 100644 --- a/src/store/run-process-panel/run-process-panel-reducer.ts +++ b/src/store/run-process-panel/run-process-panel-reducer.ts @@ -2,10 +2,11 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { RunProcessPanelAction, runProcessPanelActions } from '~/store/run-process-panel/run-process-panel-actions'; -import { WorkflowResource, CommandInputParameter, getWorkflowInputs, parseWorkflowDefinition } from '~/models/workflow'; +import { RunProcessPanelAction, runProcessPanelActions } from 'store/run-process-panel/run-process-panel-actions'; +import { WorkflowResource, CommandInputParameter, getWorkflowInputs, parseWorkflowDefinition } from 'models/workflow'; interface RunProcessPanel { + processPathname: string; processOwnerUuid: string; currentStep: number; isStepChanged: boolean; @@ -18,6 +19,7 @@ interface RunProcessPanel { } const initialState: RunProcessPanel = { + processPathname: '', processOwnerUuid: '', currentStep: 0, isStepChanged: false, @@ -29,6 +31,7 @@ const initialState: RunProcessPanel = { export const runProcessPanelReducer = (state = initialState, action: RunProcessPanelAction): RunProcessPanel => runProcessPanelActions.match(action, { + SET_PROCESS_PATHNAME: processPathname => ({ ...state, processPathname }), SET_PROCESS_OWNER_UUID: processOwnerUuid => ({ ...state, processOwnerUuid }), SET_CURRENT_STEP: currentStep => ({ ...state, currentStep }), SET_STEP_CHANGED: isStepChanged => ({ ...state, isStepChanged }),