webpack/reducer.js in foreman_acd-0.2.1 vs webpack/reducer.js in foreman_acd-0.3.0

- old
+ new

@@ -1,36 +1,39 @@ import { combineReducers } from 'redux'; -import { - cloneDeep, - findIndex, - findLastIndex, -} from 'lodash'; import parameterSelectionParameters from './components/ParameterSelection/ParameterSelectionReducer'; import applicationDefinitionConf from './components/ApplicationDefinition/ApplicationDefinitionReducer'; import applicationInstanceConf from './components/ApplicationInstance/ApplicationInstanceReducer'; import applicationInstanceReport from './components/ApplicationInstanceReport/ApplicationInstanceReportReducer'; import { - APPLICATION_DEFINITION_PARAMETER_SELECTION_MODAL_CLOSE, + APPLICATION_DEFINITION_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE, + APPLICATION_DEFINITION_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE, } from './components/ApplicationDefinition/ApplicationDefinitionConstants'; import { - APPLICATION_INSTANCE_PARAMETER_SELECTION_MODAL_CLOSE, + APPLICATION_INSTANCE_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE, + APPLICATION_INSTANCE_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE, } from './components/ApplicationInstance/ApplicationInstanceConstants'; const rootReducer = (state = {}, action) => { const param_state = parameterSelectionParameters(state.parameterSelectionParameters, action); const app_ins_report_state = applicationInstanceReport(state.applicationInstanceReport, action); - if (action.type == APPLICATION_DEFINITION_PARAMETER_SELECTION_MODAL_CLOSE) { - action.payload.serviceParameterSelection = param_state.parameters; + if (action.type == APPLICATION_DEFINITION_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE) { + action.payload.parameterSelection = param_state.parameters; } + if (action.type == APPLICATION_DEFINITION_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE) { + action.payload.parameterSelection = param_state.parameters; + } const app_def_state = applicationDefinitionConf(state.applicationDefinitionConf, action); - if (action.type == APPLICATION_INSTANCE_PARAMETER_SELECTION_MODAL_CLOSE) { - action.payload.hostParameterSelection = param_state.parameters; + if (action.type == APPLICATION_INSTANCE_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE) { + action.payload.parameterSelection = param_state.parameters; + } + if (action.type == APPLICATION_INSTANCE_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE) { + action.payload.parameterSelection = param_state.parameters; } const app_ins_state = applicationInstanceConf(state.applicationInstanceConf, action); return { applicationDefinitionConf: app_def_state,