webpack/components/ApplicationInstance/ApplicationInstance.js in foreman_acd-0.6.0 vs webpack/components/ApplicationInstance/ApplicationInstance.js in foreman_acd-0.7.0

- old
+ new

@@ -13,14 +13,14 @@ import Select from 'foremanReact/components/common/forms/Select'; import ParameterSelection from '../ParameterSelection'; import AddTableEntry from '../common/AddTableEntry'; import DeleteTableEntry from '../common/DeleteTableEntry'; import RailsData from '../common/RailsData'; -import EasyHeaderFormatter from '../common/EasyHeaderFormatter'; import AppDefinitionSelector from './components/AppDefinitionSelector'; import ServiceCounter from './components/ServiceCounter'; import { arrayToObject } from '../../helper'; +import { EasyHeaderFormatter } from '../../helper'; import { Table, FormControl, inlineEditFormatterFactory, @@ -61,12 +61,10 @@ }); const invalidMinServices = this.props.services.filter(s => (Number(s.minCount) != 0) && (s.currentCount < s.minCount)); const invalidMaxServices = this.props.services.filter(s => (Number(s.maxCount) != 0) && (s.currentCount > s.maxCount)); - console.log(invalidMinServices); - if (invalidMinServices.length > 0 || invalidMaxServices.length > 0) { result = false; if (msg != "") { msg += "\n"; @@ -215,11 +213,11 @@ return inlineEditFormatterImpl.renderEditSelect(value, additionalData, serviceList); } prettyValue = serviceList[value]; return inlineEditFormatterImpl.renderValue(prettyValue, additionalData) } - if (additionalData.property == 'hostname') { - if (additionalData.rowData.newEntry === true) { + if (additionalData.property == 'hostname') { + if (additionalData.rowData.newEntry === true) { return inlineEditFormatterImpl.renderEditText(value, additionalData); } return inlineEditFormatterImpl.renderValue(prettyValue, additionalData) } return inlineEditFormatterImpl.renderEditText(prettyValue, additionalData);