Hook up 'x' remove button; rename ListItem component.

This commit is contained in:
kialam
2019-01-14 09:45:49 -05:00
parent c5cd659c83
commit 215c23609c
5 changed files with 26 additions and 16 deletions

View File

@@ -30,7 +30,6 @@ class OrganizationAdd extends React.Component {
this.onSelectChange = this.onSelectChange.bind(this);
this.onLookupChange = this.onLookupChange.bind(this);
this.onSubmit = this.onSubmit.bind(this);
this.resetForm = this.resetForm.bind(this);
this.onCancel = this.onCancel.bind(this);
}
@@ -75,7 +74,6 @@ class OrganizationAdd extends React.Component {
const data = Object.assign({}, { ...this.state });
try {
const { data: response } = await api.createOrganization(data);
console.log(response);
const url = response.related.instance_groups;
const selected = this.state.results.filter(group => group.isChecked);
try {
@@ -89,7 +87,7 @@ class OrganizationAdd extends React.Component {
}
catch (err) {
this.setState({ onSubmitError: err })
}
}
}
onCancel() {
@@ -153,7 +151,6 @@ class OrganizationAdd extends React.Component {
onChange={this.handleChange}
/>
</FormGroup>
{/* LOOKUP MODAL PLACEHOLDER */}
<FormGroup label="Instance Groups" fieldId="simple-form-instance-groups">
<Lookup
lookup_header="Instance Groups"