webpack/components/ApplicationInstance/ApplicationInstance.js in foreman_acd-0.9.0 vs webpack/components/ApplicationInstance/ApplicationInstance.js in foreman_acd-0.9.1
- old
+ new
@@ -90,11 +90,11 @@
}
}
componentDidMount() {
const {
- data: { mode, appDefinition, hosts, ansibleVarsAll, appDefinitionUrl },
+ data: { mode, appDefinition, hosts, ansibleVarsAll, appDefinitionUrl, supportedPlugins },
initApplicationInstance,
addApplicationInstanceHost,
deleteApplicationInstanceHost,
activateEditApplicationInstanceHost,
changeEditApplicationInstanceHost,
@@ -242,10 +242,11 @@
initApplicationInstance(
appDefinition,
hosts,
ansibleVarsAll,
+ supportedPlugins,
this.headerFormatter,
this.inlineEditFormatter,
this.inlineEditButtonsFormatter,
);
};
@@ -256,10 +257,11 @@
showAlertModal, alertModalText, alertModalTitle, closeAlertModal,
appDefinition,
services,
hosts,
columns,
+ hiddenForemanParameterTypes,
addApplicationInstanceHost,
confirmEditApplicationInstanceHost,
cancelEditApplicationInstanceHost,
closeForemanParameterSelectionModal,
openAnsibleParameterSelectionModal,
@@ -383,10 +385,11 @@
</ForemanModal.Header>
{this.props.parametersData ? (
<ParameterSelection
editModeCallback={ (hide) => changeParameterSelectionMode({ mode: hide })}
paramType={ PARAMETER_SELECTION_PARAM_TYPE_FOREMAN }
+ hiddenParameterTypes={ hiddenForemanParameterTypes }
location={ location }
organization={ organization }
paramDataUrl= { foremanDataUrl }
data={ this.props.parametersData }
/>
@@ -481,10 +484,11 @@
services: [],
hosts: [],
ansibleVarsAll: [],
parametersData: {},
columns: [],
+ hiddenForemanParameterTypes: [],
editParamsOfRowId: null,
paramEditMode: false,
}
ApplicationInstance.propTypes = {
@@ -494,9 +498,10 @@
alertModalTitle: PropTypes.string,
editMode: PropTypes.bool.isRequired,
services: PropTypes.array,
appDefinition: PropTypes.object,
columns: PropTypes.array,
+ hiddenForemanParameterTypes: PropTypes.array,
hosts: PropTypes.array,
ansibleVarsAll: PropTypes.array,
closeAlertModal: PropTypes.func,
loadApplicationDefinition: PropTypes.func,
addApplicationInstanceHost: PropTypes.func,