diff --git a/src/api.js b/src/api.js
index 902eee6a3c..1acf8fc1d8 100644
--- a/src/api.js
+++ b/src/api.js
@@ -4,6 +4,7 @@ const API_LOGOUT = `${API_ROOT}logout/`;
const API_V2 = `${API_ROOT}v2/`;
const API_CONFIG = `${API_V2}config/`;
const API_ORGANIZATIONS = `${API_V2}organizations/`;
+const API_INSTANCE_GROUPS = `${API_V2}instance_groups/`;
const LOGIN_CONTENT_TYPE = 'application/x-www-form-urlencoded';
@@ -68,6 +69,20 @@ class APIClient {
return this.http.get(endpoint);
}
+
+ getInstanceGroups (){
+ return this.http.get(API_INSTANCE_GROUPS);
+ }
+
+ createInstanceGroups (url, selected) {
+ if (selected.length > 0) {
+ selected.forEach(select => {
+ this.http.post(url, { id: select.id });
+ });
+ }
+ return false;
+ }
+
}
export default APIClient;
diff --git a/src/app.scss b/src/app.scss
index 9cf44a2164..ac24b14112 100644
--- a/src/app.scss
+++ b/src/app.scss
@@ -127,9 +127,6 @@
}
}
-.pf-c-modal-box {
- width: 70%;
-}
.awx-lookup {
min-height: 36px;
}
diff --git a/src/components/Lookup/Lookup.jsx b/src/components/Lookup/Lookup.jsx
index 81a893726a..2857d7420f 100644
--- a/src/components/Lookup/Lookup.jsx
+++ b/src/components/Lookup/Lookup.jsx
@@ -35,7 +35,7 @@ class Lookup extends React.Component {
}
onChecked(_, evt) {
- this.props.lookupChange(evt.target.id);
+ this.props.lookupChange(evt.target.value);
};
wrapTags(tags) {
@@ -54,7 +54,7 @@ class Lookup extends React.Component {