import React from 'react'; import PropTypes from 'prop-types'; import { orderBy } from 'lodash'; import ServiceSelector from './components/ServiceSelector'; import { arrayToObject } from '../../helper'; import { cloneDeep, } from 'lodash'; import { Icon, Button, DualListControlled, } from 'patternfly-react'; class ExistingHostSelection extends React.Component { constructor(props) { super(props); } componentDidMount() { const { location, organization, services, initExistingHostSelection, allHosts, } = this.props; initExistingHostSelection(allHosts); } render() { const { location, organization, services, serviceId, availableHosts, alreadyUsedHosts, loadHostsOfHostgroup, hostSelectionChanged, } = this.props; const serviceList = arrayToObject(services, "id", "name"); const load_hostgroup_url = "/api/v2/hostgroups/__hostgroup_id__/hosts" return(