X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1832d4a40997469ae0c2d3e6f2e5a552b834118b..51f7337782c238ecb7d43490268bf90b856150a2:/src/views/run-process-panel/run-process-second-step.tsx diff --git a/src/views/run-process-panel/run-process-second-step.tsx b/src/views/run-process-panel/run-process-second-step.tsx index a7e4a87f..08cf4e6c 100644 --- a/src/views/run-process-panel/run-process-second-step.tsx +++ b/src/views/run-process-panel/run-process-second-step.tsx @@ -2,19 +2,19 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { Grid, Button } from '@material-ui/core'; import { RunProcessBasicForm, RUN_PROCESS_BASIC_FORM } from './run-process-basic-form'; -import { RunProcessInputsForm } from '~/views/run-process-panel/run-process-inputs-form'; -import { CommandInputParameter, WorkflowResource } from '~/models/workflow'; +import { RunProcessInputsForm } from 'views/run-process-panel/run-process-inputs-form'; +import { CommandInputParameter, WorkflowResource } from 'models/workflow'; import { connect } from 'react-redux'; -import { RootState } from '~/store/store'; +import { RootState } from 'store/store'; import { isValid } from 'redux-form'; import { RUN_PROCESS_INPUTS_FORM } from './run-process-inputs-form'; -import { RunProcessAdvancedForm } from './run-process-advanced-form'; -import { createSelector, createStructuredSelector } from 'reselect'; -import { WorkflowPresetSelect } from '~/views/run-process-panel/workflow-preset-select'; -import { selectPreset } from '~/store/run-process-panel/run-process-panel-actions'; +import { RunProcessAdvancedForm, RUN_PROCESS_ADVANCED_FORM } from './run-process-advanced-form'; +import { createStructuredSelector } from 'reselect'; +import { WorkflowPresetSelect } from 'views/run-process-panel/workflow-preset-select'; +import { selectPreset } from 'store/run-process-panel/run-process-panel-actions'; export interface RunProcessSecondStepFormDataProps { inputs: CommandInputParameter[]; @@ -43,7 +43,7 @@ const inputsSelector = (state: RootState) => state.runProcessPanel.inputs; const validSelector = (state: RootState) => - isValid(RUN_PROCESS_BASIC_FORM)(state) && isValid(RUN_PROCESS_INPUTS_FORM)(state); + isValid(RUN_PROCESS_BASIC_FORM)(state) && isValid(RUN_PROCESS_INPUTS_FORM)(state) && isValid(RUN_PROCESS_ADVANCED_FORM)(state); const mapStateToProps = createStructuredSelector({ inputs: inputsSelector, @@ -56,7 +56,7 @@ const mapStateToProps = createStructuredSelector({ export type RunProcessSecondStepFormProps = RunProcessSecondStepFormDataProps & RunProcessSecondStepFormActionProps; export const RunProcessSecondStepForm = connect(mapStateToProps, { onPresetChange: selectPreset })( ({ inputs, workflow, selectedPreset, presets, onPresetChange, valid, goBack, runProcess }: RunProcessSecondStepFormProps) => - +